We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03372c3 commit c20841bCopy full SHA for c20841b
nibabel/tests/test_orientations.py
@@ -206,6 +206,7 @@ def test_io_orientation():
206
# Test drop of rows, columns
207
mat, vec = to_matvec(def_aff)
208
aff_extra_col = np.zeros((4, 5))
209
+ aff_extra_col[-1, -1] = 1 # Not strictly necessary, but for completeness
210
aff_extra_col[:3, :3] = mat
211
aff_extra_col[:3, -1] = vec
212
assert_array_equal(io_orientation(aff_extra_col, tol=1e-5),
@@ -214,6 +215,7 @@ def test_io_orientation():
214
215
[2, 1],
216
[np.nan, np.nan]])
217
aff_extra_row = np.zeros((5, 4))
218
+ aff_extra_row[-1, -1] = 1 # Not strictly necessary, but for completeness
219
aff_extra_row[:3, :3] = mat
220
aff_extra_row[:3, -1] = vec
221
assert_array_equal(io_orientation(aff_extra_row, tol=1e-5),
0 commit comments