Skip to content

Commit ebcf7fa

Browse files
committed
fix: do not mention phase1/2 in base workflow (done in #30)
1 parent 4f3cfba commit ebcf7fa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sdcflows/workflows/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
'epi': 0,
5353
'fieldmap': 1,
5454
'phasediff': 2,
55-
'phase1': 3,
56-
'syn': 4
55+
'syn': 3,
5756
}
5857

5958
DEFAULT_MEMORY_MIN_GB = 0.01
@@ -145,7 +144,7 @@ def init_sdc_wf(distorted_ref, omp_nthreads=1, debug=False, ignore=None):
145144

146145
fmaps = defaultdict(list, [])
147146
for associated in distorted_ref.get_associations(kind='InformedBy'):
148-
if associated.suffix in ('epi', 'phasediff', 'fieldmap', 'phase1', 'phase2'):
147+
if associated.suffix in list(FMAP_PRIORITY.keys()):
149148
fmaps[associated.suffix].append(associated)
150149

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

0 commit comments

Comments
 (0)