Skip to content

Commit 05de1d8

Browse files
committed
make pass. none can only be passed in as a string
1 parent 4c28271 commit 05de1d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

heudiconv/dicoms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def group_dicoms_into_seqinfos(files, file_filter, dcmfilter, grouping):
3434
filegrp : dict
3535
`filegrp` is a dictionary with files groupped per each sequence
3636
"""
37+
if grouping == 'None': grouping = None
3738
allowed_groupings = ['studyUID', 'accession_number', None]
3839
if grouping not in allowed_groupings:
3940
raise ValueError('I do not know how to group by {0}'.format(grouping))

0 commit comments

Comments
 (0)