Skip to content

Commit

Permalink
fix: Only fit high-frequency spline for SyN-SDC
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Sep 24, 2024
1 parent 08e198f commit 18138d1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sdcflows/workflows/fit/syn.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,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

Expand Down Expand Up @@ -272,9 +270,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"),
Expand Down

0 comments on commit 18138d1

Please sign in to comment.