Skip to content

Commit 9255e2b

Browse files
committed
fix: imports, outdated argument help
1 parent 66bc53f commit 9255e2b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

heudiconv/cli/run.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ def process_extra_commands(outdir, args):
8484
elif args.command == 'sanitize-jsons':
8585
tuneup_bids_json_files(args.files)
8686
elif args.command == 'heuristics':
87-
from .utils import get_known_heuristics_with_descriptions
87+
from ..utils import get_known_heuristics_with_descriptions
8888
for name_desc in get_known_heuristics_with_descriptions().items():
8989
print("- %s: %s" % name_desc)
9090
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
9292
if not args.heuristic:
9393
raise ValueError("Specify heuristic using -f. Known are: %s"
9494
% ', '.join(get_known_heuristic_names()))
@@ -142,7 +142,7 @@ def get_parser():
142142
group.add_argument('--files', nargs='*',
143143
help='Files (tarballs, dicoms) or directories '
144144
'containing files to process. Cannot be provided if '
145-
'using --dicom_dir_template or --subjects')
145+
'using --dicom_dir_template.')
146146
parser.add_argument('-s', '--subjects', dest='subjs', type=str, nargs='*',
147147
help='list of subjects - required for dicom template. '
148148
'If not provided, DICOMS would first be "sorted" and '
@@ -173,8 +173,6 @@ def get_parser():
173173
'single argument and return a single anonymized ID. '
174174
'Also see --conv-outdir')
175175
parser.add_argument('-f', '--heuristic', dest='heuristic',
176-
# some commands might not need heuristic
177-
# required=True,
178176
help='Name of a known heuristic or path to the Python'
179177
'script containing heuristic')
180178
parser.add_argument('-p', '--with-prov', action='store_true',

0 commit comments

Comments
 (0)