Skip to content

Commit 6a9da18

Browse files
committed
fix: Only fit high-frequency spline for SyN-SDC
1 parent 9b52d05 commit 6a9da18

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sdcflows/workflows/fit/syn.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ def init_syn_sdc_wf(
127127
from ...interfaces.bspline import (
128128
ApplyCoeffsField,
129129
BSplineApprox,
130-
DEFAULT_LF_ZOOMS_MM,
131130
DEFAULT_HF_ZOOMS_MM,
132-
DEFAULT_ZOOMS_MM,
133131
)
134132
from ...interfaces.brainmask import BinaryDilation, Union
135133

@@ -261,9 +259,10 @@ def init_syn_sdc_wf(
261259
name="bs_filter",
262260
)
263261
bs_filter.interface._always_run = debug
264-
bs_filter.inputs.bs_spacing = (
265-
[DEFAULT_LF_ZOOMS_MM, DEFAULT_HF_ZOOMS_MM] if not sloppy else [DEFAULT_ZOOMS_MM]
266-
)
262+
bs_filter.inputs.bs_spacing = [DEFAULT_HF_ZOOMS_MM]
263+
264+
if sloppy:
265+
bs_filter.inputs.zooms_min = 4.0
267266

268267
workflow.connect([
269268
(inputnode, readout_time, [(("epi_ref", _pop), "in_file"),

0 commit comments

Comments
 (0)