We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a096635 commit 2ca6848Copy full SHA for 2ca6848
nibabel/freesurfer/tests/test_io.py
@@ -212,10 +212,12 @@ def test_annot():
212
@freesurfer_test
213
def test_label():
214
"""Test IO of .label"""
215
- label_path = pjoin(data_path, "label", "lh.BA1.label")
+ label_path = pjoin(data_path, "label", "lh.cortex.label")
216
label = read_label(label_path)
217
# XXX : test more
218
- assert_true(np.all(label > 0))
+ assert_true(label.min() >= 0)
219
+ assert_true(label.max() <= 163841)
220
+ assert_true(label.shape[0] <= 163842)
221
222
labels, scalars = read_label(label_path, True)
223
assert_true(np.all(labels == label))
0 commit comments