Skip to content

Commit bdacad1

Browse files
committed
Fix.
1 parent e73e3d2 commit bdacad1

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
@@ -462,7 +462,7 @@ def _serialize_volume_info(volume_info):
462462
if not (np.array_equal(volume_info[key], [20]) or np.array_equal(
463463
volume_info[key], [2, 0, 20])):
464464
warnings.warn("Unknown extension code.")
465-
strings.append(np.array(volume_info[key], dtype='>i4').tobytes())
465+
strings.append(np.array(volume_info[key], dtype='>i4').tostring())
466466
elif key in ('valid', 'filename'):
467467
val = volume_info[key]
468468
strings.append('{0} = {1}\n'.format(key, val).encode('utf-8'))

0 commit comments

Comments
 (0)