File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
nipype/interfaces/freesurfer Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -800,16 +800,21 @@ def cmdline(self):
800
800
directive = 'all'
801
801
for idx , step in enumerate (self ._steps ):
802
802
step , outfiles = step
803
+ flag = '-{}' .format (step )
804
+ noflag = '-no{}' .format (step )
805
+ if flag in cmd or noflag in cmd :
806
+ continue
807
+
803
808
if all ([os .path .exists (os .path .join (subjects_dir ,
804
809
self .inputs .subject_id , f )) for
805
810
f in outfiles ]):
806
- flags .append ('-no%s' % step )
811
+ flags .append (noflag )
807
812
if idx > 4 :
808
813
directive = 'autorecon2'
809
814
elif idx > 23 :
810
815
directive = 'autorecon3'
811
816
else :
812
- flags .append ('-%s' % step )
817
+ flags .append (flag )
813
818
cmd = cmd .replace (' -%s ' % self .inputs .directive , ' -%s ' % directive )
814
819
cmd += ' ' + ' ' .join (flags )
815
820
iflogger .info ('resume recon-all : %s' % cmd )
You can’t perform that action at this time.
0 commit comments