We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e73e3d2 commit bdacad1Copy full SHA for bdacad1
nibabel/freesurfer/io.py
@@ -462,7 +462,7 @@ def _serialize_volume_info(volume_info):
462
if not (np.array_equal(volume_info[key], [20]) or np.array_equal(
463
volume_info[key], [2, 0, 20])):
464
warnings.warn("Unknown extension code.")
465
- strings.append(np.array(volume_info[key], dtype='>i4').tobytes())
+ strings.append(np.array(volume_info[key], dtype='>i4').tostring())
466
elif key in ('valid', 'filename'):
467
val = volume_info[key]
468
strings.append('{0} = {1}\n'.format(key, val).encode('utf-8'))
0 commit comments