From 6a9da18029e7c0f54e9162a5b211f37b43f9159b Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Mon, 16 Sep 2024 15:07:52 -0400 Subject: [PATCH] fix: Only fit high-frequency spline for SyN-SDC --- sdcflows/workflows/fit/syn.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sdcflows/workflows/fit/syn.py b/sdcflows/workflows/fit/syn.py index 5884173b9e..447f1878b4 100644 --- a/sdcflows/workflows/fit/syn.py +++ b/sdcflows/workflows/fit/syn.py @@ -127,9 +127,7 @@ def init_syn_sdc_wf( from ...interfaces.bspline import ( ApplyCoeffsField, BSplineApprox, - DEFAULT_LF_ZOOMS_MM, DEFAULT_HF_ZOOMS_MM, - DEFAULT_ZOOMS_MM, ) from ...interfaces.brainmask import BinaryDilation, Union @@ -261,9 +259,10 @@ def init_syn_sdc_wf( name="bs_filter", ) bs_filter.interface._always_run = debug - bs_filter.inputs.bs_spacing = ( - [DEFAULT_LF_ZOOMS_MM, DEFAULT_HF_ZOOMS_MM] if not sloppy else [DEFAULT_ZOOMS_MM] - ) + bs_filter.inputs.bs_spacing = [DEFAULT_HF_ZOOMS_MM] + + if sloppy: + bs_filter.inputs.zooms_min = 4.0 workflow.connect([ (inputnode, readout_time, [(("epi_ref", _pop), "in_file"),