@@ -84,11 +84,11 @@ def process_extra_commands(outdir, args):
84
84
elif args .command == 'sanitize-jsons' :
85
85
tuneup_bids_json_files (args .files )
86
86
elif args .command == 'heuristics' :
87
- from .utils import get_known_heuristics_with_descriptions
87
+ from .. utils import get_known_heuristics_with_descriptions
88
88
for name_desc in get_known_heuristics_with_descriptions ().items ():
89
89
print ("- %s: %s" % name_desc )
90
90
elif args .command == 'heuristic-info' :
91
- from .utils import get_heuristic_description , get_known_heuristic_names
91
+ from .. utils import get_heuristic_description , get_known_heuristic_names
92
92
if not args .heuristic :
93
93
raise ValueError ("Specify heuristic using -f. Known are: %s"
94
94
% ', ' .join (get_known_heuristic_names ()))
@@ -142,7 +142,7 @@ def get_parser():
142
142
group .add_argument ('--files' , nargs = '*' ,
143
143
help = 'Files (tarballs, dicoms) or directories '
144
144
'containing files to process. Cannot be provided if '
145
- 'using --dicom_dir_template or --subjects ' )
145
+ 'using --dicom_dir_template. ' )
146
146
parser .add_argument ('-s' , '--subjects' , dest = 'subjs' , type = str , nargs = '*' ,
147
147
help = 'list of subjects - required for dicom template. '
148
148
'If not provided, DICOMS would first be "sorted" and '
@@ -173,8 +173,6 @@ def get_parser():
173
173
'single argument and return a single anonymized ID. '
174
174
'Also see --conv-outdir' )
175
175
parser .add_argument ('-f' , '--heuristic' , dest = 'heuristic' ,
176
- # some commands might not need heuristic
177
- # required=True,
178
176
help = 'Name of a known heuristic or path to the Python'
179
177
'script containing heuristic' )
180
178
parser .add_argument ('-p' , '--with-prov' , action = 'store_true' ,
0 commit comments