Skip to content

Commit 8185fb4

Browse files
authored
Merge pull request #275 from nipy/enh/further-cleaning-266
MNT: Minimal housekeeping of tests
2 parents 60168b2 + eeae750 commit 8185fb4

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

nitransforms/tests/test_nonlinear.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import numpy as np
99
import nibabel as nb
10-
from nitransforms.resampling import apply
1110
from nitransforms.base import TransformError
1211
from nitransforms.nonlinear import (
1312
BSplineFieldTransform,
@@ -62,17 +61,8 @@ def test_bsplines_references(testdata_path):
6261
testdata_path / "someones_bspline_coefficients.nii.gz"
6362
).to_field()
6463

65-
with pytest.raises(TransformError):
66-
apply(
67-
BSplineFieldTransform(
68-
testdata_path / "someones_bspline_coefficients.nii.gz"
69-
),
70-
testdata_path / "someones_anatomy.nii.gz",
71-
)
72-
73-
apply(
74-
BSplineFieldTransform(testdata_path / "someones_bspline_coefficients.nii.gz"),
75-
testdata_path / "someones_anatomy.nii.gz",
64+
BSplineFieldTransform(
65+
testdata_path / "someones_bspline_coefficients.nii.gz",
7666
reference=testdata_path / "someones_anatomy.nii.gz",
7767
)
7868

@@ -154,8 +144,8 @@ def test_densefield_map(get_testdata, image_orientation, ongrid):
154144
) < 0.5
155145

156146

157-
def test_map_bspline_vs_displacement(tmp_path, testdata_path):
158-
"""Cross-check B-Splines and deformation field."""
147+
def test_densefield_map_vs_bspline(tmp_path, testdata_path):
148+
"""Cross-check B-Splines and displacements field."""
159149
os.chdir(str(tmp_path))
160150

161151
img_name = testdata_path / "someones_anatomy.nii.gz"

0 commit comments

Comments
 (0)