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 96a034b commit 6733cbaCopy full SHA for 6733cba
nitransforms/tests/test_io.py
@@ -45,6 +45,12 @@ def test_LinearTransformArray(tmpdir, data_path):
45
assert lta['nxforms'] == 0
46
assert len(lta['xforms']) == 0
47
48
+ # read invalid LTA file
49
+ test_lta = str(data_path / 'affine-RAS.fsl')
50
+ with pytest.raises(TransformFileError):
51
+ with open(test_lta) as fp:
52
+ LTA.from_fileobj(fp)
53
+
54
test_lta = str(data_path / 'affine-RAS.fs.lta')
55
with open(test_lta) as fp:
56
lta = LTA.from_fileobj(fp)
0 commit comments