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 c68b468 commit 1a952d7Copy full SHA for 1a952d7
nibabel/freesurfer/io.py
@@ -389,6 +389,9 @@ def read_annot(filepath, orig_ids=False):
389
ctab[i, 2] * (2 ** 16) +
390
ctab[i, 3] * (2 ** 24))
391
392
+ # make sure names are strings, not bytes
393
+ names = [n.decode('ascii') for n in names]
394
+
395
labels = labels.astype(np.int32)
396
397
if not orig_ids:
0 commit comments