-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
heudiconv/heudiconv/heuristics/reproin.py
Line 889 in 32409ed
| split = series_spec.split("_") |
Line 889 will create a list with the final element being an empty str if series_spec ends in an underscore. This creates an IndexError at 929:
heudiconv/heudiconv/heuristics/reproin.py
Lines 927 to 929 in 32409ed
| for s in split[1:]: | |
| key, value = split2(s) | |
| if value is None and key[-1] in "+=": |
I was going to submit a PR but I wasn't sure if the preferred behavior should be:
a) Remove the empty str from the list or something to the effect of ignoring the error
b) Consider the entire str to be non-reproin and return an empty dict
Metadata
Metadata
Assignees
Labels
No labels