We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e57399 commit 7b1278eCopy full SHA for 7b1278e
nibabel/freesurfer/io.py
@@ -450,7 +450,7 @@ def write_string(s):
450
# Generate annotation values for each ctab entry
451
if fill_ctab:
452
ctab = np.hstack((ctab[:, :4], _pack_rgba(ctab[:, :4])))
453
- elif not np.array_equal(ctab[:, 4], _pack_rgba(ctab[:, :4])):
+ elif not np.array_equal(ctab[:, [4]], _pack_rgba(ctab[:, :4])):
454
warnings.warn('Annotation values in {} will be incorrect'.format(
455
filepath))
456
0 commit comments