We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90f2c94 commit a103259Copy full SHA for a103259
src/smriprep/utils/bids.py
@@ -70,10 +70,9 @@ def collect_derivatives(
70
71
paths = [item.path for item in item]
72
73
- if key.startswith('t2w_'):
74
- derivs_cache[key] = paths[0] if len(paths) == 1 else paths
75
- else:
76
- derivs_cache[f't1w_{key}'] = paths[0] if len(paths) == 1 else paths
+ if not key.startswith('t2w_'):
+ key = f't1w_{key}'
+ derivs_cache[key] = paths[0] if len(paths) == 1 else paths
77
78
transforms = derivs_cache.setdefault('transforms', {})
79
for _space in std_spaces:
0 commit comments