We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb3d2f3 commit dbcade4Copy full SHA for dbcade4
nitransforms/tests/test_linear.py
@@ -6,6 +6,7 @@
6
import numpy as np
7
from subprocess import check_call
8
import shutil
9
+import h5py
10
11
import nibabel as nb
12
from nibabel.eulerangles import euler2mat
@@ -155,3 +156,9 @@ def test_apply_linear_transform(
155
156
diff = sw_moved.get_fdata() - nt_moved.get_fdata()
157
# A certain tolerance is necessary because of resampling at borders
158
assert (np.abs(diff) > 1e-3).sum() / diff.size < TESTS_BORDER_TOLERANCE
159
+
160
161
+def test_Affine(tmpdir):
162
+ """Test affine's operations."""
163
+ with h5py.File('xfm.x5', 'w') as f:
164
+ nbl.Affine()._to_hdf5(f.create_group('Affine'))
0 commit comments