Skip to content

Commit 1dac9d7

Browse files
committed
BF(regression): it is allowed to have 1 subject specified to override even if with --files
1 parent 7084197 commit 1dac9d7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

heudiconv/cli/run.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,12 @@ def main(argv=None):
9696
numpy.random.seed(args.random_seed)
9797
if args.debug:
9898
lgr.setLevel(logging.DEBUG)
99-
if args.files and args.subjs:
100-
raise ValueError("Unable to processes `--subjects` with files")
99+
# Should be possible but only with a single subject -- will be used to
100+
# override subject deduced from the DICOMs
101+
if args.files and args.subjs and len(args.subjs) > 1:
102+
raise ValueError(
103+
"Unable to processes multiple `--subjects` with files"
104+
)
101105

102106
if args.debug:
103107
setup_exceptionhook()

0 commit comments

Comments
 (0)