Skip to content

Commit 325ef05

Browse files
committed
tst: add a check for bad input gifti files
1 parent 11ca820 commit 325ef05

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nitransforms/tests/test_base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,8 @@ def test_SampledSpatialData(data_path):
119119
assert ssd2.ndim == 3
120120
assert ssd2.ndcoords.shape == (249277, 3)
121121
assert ssd2.shape is None
122+
123+
# check what happens with an empty gifti
124+
with pytest.raises(TypeError):
125+
gii = nb.gifti.GiftiImage()
126+
SampledSpatialData(gii)

0 commit comments

Comments
 (0)