File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
nipype/interfaces/freesurfer Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -949,10 +949,22 @@ def cmdline(self):
949
949
if not isdefined (subjects_dir ):
950
950
subjects_dir = self ._gen_subjects_dir ()
951
951
952
+ # Check only relevant steps
953
+ directive = self .inputs .directive
954
+ if not isdefined (directive ):
955
+ steps = []
956
+ elif directive == 'autorecon1' :
957
+ steps = self ._autorecon1_steps
958
+ elif directive .startswith ('autorecon2' ):
959
+ steps = self ._autorecon2_steps
960
+ elif directive == 'autorecon3' :
961
+ steps = self ._autorecon3_steps
962
+ else :
963
+ steps = self ._steps
964
+
952
965
no_run = True
953
966
flags = []
954
- for idx , step in enumerate (self ._steps ):
955
- step , outfiles , infiles = step
967
+ for step , outfiles , infiles in steps :
956
968
flag = '-{}' .format (step )
957
969
noflag = '-no{}' .format (step )
958
970
if noflag in cmd :
You can’t perform that action at this time.
0 commit comments