Skip to content

Commit ad74072

Browse files
committed
Create copy of query before modifying.
1 parent 29f0def commit ad74072

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/smriprep/utils/bids.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def collect_derivatives(
7676
for _space in std_spaces:
7777
space = _space.replace(':cohort-', '+')
7878
for key, qry in spec['transforms'].items():
79+
qry = qry.copy()
7980
qry |= qry_base
8081
qry['from'] = qry['from'] or space
8182
qry['to'] = qry['to'] or space

0 commit comments

Comments
 (0)