Skip to content

Commit c6c6677

Browse files
committed
BW: Support old versions of numpy
1 parent 66a9f2d commit c6c6677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/freesurfer/tests/test_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def test_write_annot_fill_ctab():
261261
list(np.random.randint(0, nlabels, nvertices - nlabels))
262262
labels = np.array(labels, dtype=np.int32)
263263
np.random.shuffle(labels)
264-
rgbal = np.random.randint(0, 255, (nlabels, 4), dtype=np.int32)
264+
rgbal = np.array(np.random.randint(0, 255, (nlabels, 4)), dtype=np.int32)
265265
annot_path = 'c.annot'
266266

267267
with InTemporaryDirectory():

0 commit comments

Comments
 (0)