Skip to content

Commit 1a0d949

Browse files
committed
TEST: Add multiframe ECAT file for testing
1 parent b356a64 commit 1a0d949

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
url = git://github.com/matthew-brett/nitest-minc2.git
77
[submodule "nipy-ecattest"]
88
path = nibabel-data/nipy-ecattest
9-
url = https://github.com/freec84/nipy-ecattest
9+
url = https://github.com/effigies/nipy-ecattest
1010
[submodule "nibabel-data/nitest-freesurfer"]
1111
path = nibabel-data/nitest-freesurfer
1212
url = https://bitbucket.org/nipy/nitest-freesurfer.git

nibabel/tests/test_ecat_data.py

+13-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class TestNegatives(object):
3737
# unit: 1/cm
3838
)
3939

40-
@needs_nibabel_data('nitest-minc2')
40+
@needs_nibabel_data('nipy-ecattest')
4141
def test_load(self):
4242
# Check highest level load of minc works
4343
img = self.opener(self.example_params['fname'])
@@ -50,3 +50,15 @@ def test_load(self):
5050
assert_almost_equal(data.min(), self.example_params['min'], 4)
5151
assert_almost_equal(data.max(), self.example_params['max'], 4)
5252
assert_almost_equal(data.mean(), self.example_params['mean'], 4)
53+
54+
55+
class TestMultiframe(TestNegatives):
56+
example_params = dict(
57+
fname=os.path.join(ECAT_TEST_PATH, 'ECAT7_testcase_multiframe.v'),
58+
shape=(256, 256, 207, 3),
59+
type=np.int16,
60+
# Zeroed out image
61+
min=0.0,
62+
max=29170.67905,
63+
mean=121.454,
64+
)

0 commit comments

Comments
 (0)