Skip to content

Commit 5935342

Browse files
committed
rf: Deprecate unused t1w_inversion argument
1 parent fd8220d commit 5935342

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

sdcflows/workflows/fit/syn.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def init_syn_preprocessing_wf(
326326
name="syn_preprocessing_wf",
327327
omp_nthreads=1,
328328
auto_bold_nss=False,
329-
t1w_inversion=False,
329+
t1w_inversion=None,
330330
sd_prior=True,
331331
):
332332
"""
@@ -353,6 +353,7 @@ def init_syn_preprocessing_wf(
353353
of BOLD images.
354354
t1w_inversion : :obj:`bool`
355355
Run T1w intensity inversion so that it looks more like a T2 contrast.
356+
(DEPRECATED. Does nothing.)
356357
sd_prior : :obj:`bool`
357358
Enable using a prior map to regularize the SyN cost function.
358359
@@ -401,6 +402,10 @@ def init_syn_preprocessing_wf(
401402
from ...interfaces.utils import Deoblique, DenoiseImage
402403
from ...interfaces.brainmask import BrainExtraction, BinaryDilation
403404

405+
if t1w_inversion is not None:
406+
import warnings
407+
warnings.warn("The `t1w_inversion` argument is deprecated and does nothing.", DeprecationWarning)
408+
404409
workflow = Workflow(name=name)
405410

406411
inputnode = pe.Node(

sdcflows/workflows/fit/tests/test_syn.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def test_syn_wf(tmpdir, datadir, workdir, outdir, sloppy_mode, sd_prior):
4242
omp_nthreads=4,
4343
debug=sloppy_mode,
4444
auto_bold_nss=True,
45-
t1w_inversion=True,
4645
sd_prior=sd_prior,
4746
)
4847
prep_wf.inputs.inputnode.in_epis = [

0 commit comments

Comments
 (0)