Skip to content

Commit

Permalink
TST: Exercise new behavior for test
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Mar 6, 2025
1 parent 18f5305 commit 715d1a8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sdcflows/workflows/fit/tests/test_syn.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

@pytest.mark.veryslow
@pytest.mark.slow
def test_syn_wf(tmpdir, datadir, workdir, outdir, sloppy_mode):
@pytest.mark.parametrize("sd_prior", [True, False])
def test_syn_wf(tmpdir, datadir, workdir, outdir, sloppy_mode, sd_prior):
"""Build and run an SDC-SyN workflow."""
derivs_path = datadir / "ds000054" / "derivatives"
smriprep = derivs_path / "smriprep-0.6" / "sub-100185" / "anat"
Expand All @@ -42,6 +43,7 @@ def test_syn_wf(tmpdir, datadir, workdir, outdir, sloppy_mode):
debug=sloppy_mode,
auto_bold_nss=True,
t1w_inversion=True,
sd_prior=sd_prior,
)
prep_wf.inputs.inputnode.in_epis = [
str(
Expand Down Expand Up @@ -72,7 +74,12 @@ def test_syn_wf(tmpdir, datadir, workdir, outdir, sloppy_mode):
smriprep / "sub-100185_desc-brain_mask.nii.gz"
)

syn_wf = init_syn_sdc_wf(debug=sloppy_mode, sloppy=sloppy_mode, omp_nthreads=4)
syn_wf = init_syn_sdc_wf(
debug=sloppy_mode,
sloppy=sloppy_mode,
omp_nthreads=4,
sd_prior=sd_prior,
)

# fmt: off
wf.connect([
Expand Down

0 comments on commit 715d1a8

Please sign in to comment.