Skip to content

Commit 7057072

Browse files
authored
ENH: Default to 4mm re-zoom for b-spline approximation (#314)
* ENH: Default to 4mm re-zoom for b-spline approximation * MNT: Update nibabel to 3.1+ * TEST: Add zooms_min to test
1 parent 9e73bd8 commit 7057072

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

min-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto-generated by .maint/update_requirements.py
22
attrs==20.1.0
3-
nibabel==3.0.1
3+
nibabel==3.1.0
44
nipype==1.5.1
55
traits<6.4
66
niworkflows==1.6.3

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto-generated by .maint/update_requirements.py
22
attrs>=20.1.0
3-
nibabel>=3.0.1
3+
nibabel>=3.1.0
44
nipype<2.0,>=1.5.1
55
traits<6.4
66
niworkflows~=1.6.3

sdcflows/interfaces/bspline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class _BSplineApproxInputSpec(BaseInterfaceInputSpec):
7878
zooms_min = traits.Union(
7979
traits.Float,
8080
traits.Tuple(traits.Float, traits.Float, traits.Float),
81-
default_value=1.95,
81+
default_value=4.0,
8282
usedefault=True,
8383
desc="limit minimum image zooms, set 0.0 to use the original image",
8484
)

sdcflows/interfaces/tests/test_bspline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def test_bsplines(tmp_path, testnum):
7474
in_data=test1.outputs.out_field,
7575
in_mask=str(tmp_path / "target.nii.gz"),
7676
bs_spacing=[(4, 6, 8)],
77+
zooms_min=0,
7778
recenter=False,
7879
ridge_alpha=1e-4,
7980
).run()

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ setup_requires =
2929
toml
3030
install_requires =
3131
attrs >= 20.1.0
32-
nibabel >=3.0.1
32+
nibabel >=3.1.0
3333
nipype >=1.5.1,<2.0
3434
traits <6.4
3535
niworkflows @ git+https://github.com/nipreps/niworkflows.git@master

0 commit comments

Comments
 (0)