Skip to content

Commit f26724d

Browse files
mgxdeffigies
andcommitted
FIX: Unify comparison as lists
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 35dd10e commit f26724d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

niworkflows/utils/bids.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
from bids import BIDSLayout
3131
from bids.layout import Query
32+
from bids.utils import listify
3233
from packaging.version import Version
3334

3435
DEFAULT_BIDS_QUERIES = {
@@ -256,7 +257,7 @@ def collect_data(
256257
for acq, entities in bids_filters.items():
257258
# BIDS filters will not be able to override subject / session entities
258259
for entity, param in reserved_entities:
259-
if entity in entities and param != entities[entity]:
260+
if entity in entities and listify(param) != listify(entities[entity]):
260261
raise ValueError(
261262
f'Conflicting entities for "{entity}" found: {entities[entity]} // {param}'
262263
)

0 commit comments

Comments
 (0)