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 16, 2024
1 parent 08e198f commit 1a351d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdcflows/workflows/fit/syn.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ def init_syn_sdc_wf(
from ...interfaces.bspline import (
ApplyCoeffsField,
BSplineApprox,
DEFAULT_LF_ZOOMS_MM,
DEFAULT_HF_ZOOMS_MM,
DEFAULT_ZOOMS_MM,
)
Expand Down Expand Up @@ -272,9 +271,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

Check warning on line 277 in sdcflows/workflows/fit/syn.py

View check run for this annotation

Codecov / codecov/patch

sdcflows/workflows/fit/syn.py#L277

Added line #L277 was not covered by tests

workflow.connect([
(inputnode, readout_time, [(("epi_ref", _pop), "in_file"),
Expand Down

0 comments on commit 1a351d9

Please sign in to comment.