Skip to content

Commit 4f3cfba

Browse files
mattcieslakoesteban
andcommitted
Update sdcflows/workflows/base.py
Use attribute access on pybids Co-Authored-By: Oscar Esteban <[email protected]>
1 parent 960e2b1 commit 4f3cfba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdcflows/workflows/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def init_sdc_wf(distorted_ref, omp_nthreads=1, debug=False, ignore=None):
145145

146146
fmaps = defaultdict(list, [])
147147
for associated in distorted_ref.get_associations(kind='InformedBy'):
148-
if associated['suffix'] in ('epi', 'phasediff', 'fieldmap', 'phase1', 'phase2'):
148+
if associated.suffix in ('epi', 'phasediff', 'fieldmap', 'phase1', 'phase2'):
149149
fmaps[associated.suffix].append(associated)
150150

151151
workflow = Workflow(name='sdc_wf' if distorted_ref else 'sdc_bypass_wf')

0 commit comments

Comments
 (0)