Skip to content

Commit 2ca6848

Browse files
committed
TEST: Use label file that exists across FS versions
Update tests with valid checks
1 parent a096635 commit 2ca6848

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nibabel/freesurfer/tests/test_io.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,12 @@ def test_annot():
212212
@freesurfer_test
213213
def test_label():
214214
"""Test IO of .label"""
215-
label_path = pjoin(data_path, "label", "lh.BA1.label")
215+
label_path = pjoin(data_path, "label", "lh.cortex.label")
216216
label = read_label(label_path)
217217
# XXX : test more
218-
assert_true(np.all(label > 0))
218+
assert_true(label.min() >= 0)
219+
assert_true(label.max() <= 163841)
220+
assert_true(label.shape[0] <= 163842)
219221

220222
labels, scalars = read_label(label_path, True)
221223
assert_true(np.all(labels == label))

0 commit comments

Comments
 (0)