From 288adc0a431413759a565e84fa3e2acbd781e2af Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Wed, 29 Jan 2020 11:19:04 +0000 Subject: [PATCH] TEST: test voxToSurfMat --- tests/test_mghimage.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_mghimage.py b/tests/test_mghimage.py index e2ad7739f..f91ff31dd 100644 --- a/tests/test_mghimage.py +++ b/tests/test_mghimage.py @@ -67,3 +67,9 @@ def test_MGHImage_save(): expfile = op.abspath(fslimage.addExt('example', mustExist=False)) assert img.dataSource == op.abspath(expfile) + + +def test_voxToSurfMat(): + testfile = op.join(datadir, 'example.mgz') + img = fslmgh.MGHImage(testfile) + assert np.all(np.isclose(img.voxToSurfMat, fslmgh.voxToSurfMat(img))) -- GitLab