|
28 | 28 | Directory, InputMultiPath,
|
29 | 29 | OutputMultiPath, CommandLine,
|
30 | 30 | CommandLineInputSpec, isdefined)
|
31 |
| -from ..traits_extension import DictStrStr |
32 | 31 | from .base import (FSCommand, FSTraitedSpec,
|
33 | 32 | FSTraitedSpecOpenMP,
|
34 | 33 | FSCommandOpenMP, Info)
|
@@ -943,16 +942,17 @@ def _format_arg(self, name, trait_spec, value):
|
943 | 942 | @property
|
944 | 943 | def cmdline(self):
|
945 | 944 | cmd = super(ReconAll, self).cmdline
|
| 945 | + |
| 946 | + # Adds '-expert' flag if expert flags are passed |
| 947 | + # Mutually exclusive with 'expert' input parameter |
| 948 | + cmd += self._prep_expert_file() |
| 949 | + |
946 | 950 | if not self._is_resuming():
|
947 | 951 | return cmd
|
948 | 952 | subjects_dir = self.inputs.subjects_dir
|
949 | 953 | if not isdefined(subjects_dir):
|
950 | 954 | subjects_dir = self._gen_subjects_dir()
|
951 | 955 |
|
952 |
| - # Adds '-expert' flag if expert flags are passed |
953 |
| - # Mutually exclusive with 'expert' input parameter |
954 |
| - cmd += self._prep_expert_file() |
955 |
| - |
956 | 956 | no_run = True
|
957 | 957 | flags = []
|
958 | 958 | for idx, step in enumerate(self._steps):
|
@@ -981,11 +981,11 @@ def cmdline(self):
|
981 | 981 | return cmd
|
982 | 982 |
|
983 | 983 | def _prep_expert_file(self):
|
984 |
| - if isdefined(self.inputs.extra): |
| 984 | + if isdefined(self.inputs.expert): |
985 | 985 | return ''
|
986 | 986 |
|
987 | 987 | lines = []
|
988 |
| - for binary in binaries: |
| 988 | + for binary in self._binaries: |
989 | 989 | args = getattr(self.inputs, binary)
|
990 | 990 | if isdefined(args):
|
991 | 991 | lines.append('{} {}\n'.format(binary, args))
|
|
0 commit comments