Skip to content

Commit 46a3042

Browse files
committed
FIX: Fixes issues with incorrectly formatting strings.
1 parent 7fc0fd1 commit 46a3042

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

nipype/workflows/smri/freesurfer/autorecon1.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def awkfile(in_file, log_file):
345345
"""
346346
import subprocess
347347
import os
348-
command = ['awk', '-f', awk_file, log_file]
348+
command = ['awk', '-f', in_file, log_file]
349349
print(''.join(command))
350350
subprocess.call(command)
351351
log_file = os.path.abspath(log_file)
@@ -405,7 +405,6 @@ def awkfile(in_file, log_file):
405405
['out_file'],
406406
copy_file),
407407
name='Copy_Template_Brainmask')
408-
#TODO: Change this to inputspec
409408
copy_template_brainmask.inputs.out_file = 'brainmask_{0}.mgz'.format(config['long_template'])
410409

411410
ar1_wf.connect([(inputspec, copy_template_brainmask, [('template_brainmask', 'in_file')])])

nipype/workflows/smri/freesurfer/autorecon3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def create_AutoRecon3(name="AutoRecon3", qcache=False, plugin_args=None):
467467
hemiwf2.connect([(hemi_inputspec2, contrast, [('orig_mgz', 'orig'),
468468
('rawavg', 'rawavg'),
469469
('{0}_white'.format(hemisphere), 'white'),
470-
('cortex_label'.format(hemisphere), 'cortex'),
470+
('cortex_label', 'cortex'),
471471
('aparc_annot', 'annotation'),
472472
('thickness', 'thickness'),
473473
]),

nipype/workflows/smri/freesurfer/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def getdefaultconfig():
448448
'{0}.average.curvature.filled.buckner40.tif'.format(hemi))
449449
config['{0}_classifier'.format(hemi)] = os.path.join(
450450
config['fs_home'], 'average',
451-
'rh.curvature.buckner40.filled.desikan_killiany.2010-03-25.gcs'.format(hemi))
451+
'{0}.curvature.buckner40.filled.desikan_killiany.2010-03-25.gcs'.format(hemi))
452452
config['{0}_classifier2'.format(hemi)] = os.path.join(
453453
config['fs_home'], 'average',
454454
'{0}.destrieux.simple.2009-07-29.gcs'.format(hemi))

0 commit comments

Comments
 (0)