Skip to content

Commit 85eb115

Browse files
committed
Make the attribute matching strict during bidscoiner runtime (Github issue #221)
1 parent a77283f commit 85eb115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bidscoin/bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1698,7 +1698,7 @@ def get_matching_run(datasource: DataSource, bidsmap: dict, runtime=False) -> Tu
16981698

16991699
# Check if the attribute value matches with the info from the sourcefile
17001700
sourcevalue = datasource.attributes(attrkey, validregexp=True)
1701-
if attrvalue:
1701+
if attrvalue or runtime:
17021702
match = match and match_runvalue(sourcevalue, attrvalue)
17031703

17041704
# Fill the empty attribute with the info from the sourcefile

0 commit comments

Comments
 (0)