Skip to content

Commit 77d63f1

Browse files
committed
RF: populate-intended-for command uses dashes (-)
...rather than underscores (`_`) for consistency with other commands
1 parent 5c4ff83 commit 77d63f1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

heudiconv/cli/run.py

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def get_parser():
136136
'heuristics', 'heuristic-info',
137137
'ls', 'populate-templates',
138138
'sanitize-jsons', 'treat-jsons',
139+
'populate-intended-for'
139140
),
140141
help='Custom action to be performed on provided files instead of '
141142
'regular operation.')

heudiconv/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def process_extra_commands(outdir, command, files, dicom_dir_template,
108108
ensure_heuristic_arg(heuristic)
109109
from .utils import get_heuristic_description
110110
print(get_heuristic_description(heuristic, full=True))
111-
elif command == 'populate_intended_for':
111+
elif command == 'populate-intended-for':
112112
for subj in subjs:
113113
session_path = op.join(outdir, 'sub-' + subj)
114114
if session:

heudiconv/tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def test_populate_intended_for(session, expected_folder, capfd):
315315
# that don't exist, and check that the output is the expected.
316316
bids_folder = expected_folder.split('sub-')[0]
317317
subjects = ['1', '2']
318-
process_extra_commands(bids_folder, 'populate_intended_for', [], '',
318+
process_extra_commands(bids_folder, 'populate-intended-for', [], '',
319319
'', session, subjects, None)
320320
captured_output = capfd.readouterr().err
321321
for s in subjects:

0 commit comments

Comments
 (0)