Skip to content

Commit 7b1278e

Browse files
committed
BF: Bad annotation value warning was always being raised
1 parent 3e57399 commit 7b1278e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/freesurfer/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def write_string(s):
450450
# Generate annotation values for each ctab entry
451451
if fill_ctab:
452452
ctab = np.hstack((ctab[:, :4], _pack_rgba(ctab[:, :4])))
453-
elif not np.array_equal(ctab[:, 4], _pack_rgba(ctab[:, :4])):
453+
elif not np.array_equal(ctab[:, [4]], _pack_rgba(ctab[:, :4])):
454454
warnings.warn('Annotation values in {} will be incorrect'.format(
455455
filepath))
456456

0 commit comments

Comments
 (0)