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 2e01d49 commit b5f1849Copy full SHA for b5f1849
nibabel/freesurfer/io.py
@@ -54,7 +54,7 @@ def _read_volume_info(fobj):
54
volume_info['head'] = head
55
for key in ['valid', 'filename', 'volume', 'voxelsize', 'xras', 'yras',
56
'zras', 'cras']:
57
- pair = fobj.readline().split('=')
+ pair = fobj.readline().decode('utf-8').split('=')
58
if pair[0].strip() != key or len(pair) != 2:
59
raise IOError('Error parsing volume info.')
60
volume_info[pair[0]] = pair[1]
0 commit comments