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 0d3d452 commit cf7c130Copy full SHA for cf7c130
bin/parrec2nii
@@ -198,7 +198,7 @@ def proc_file(infile, opts):
198
# container for potential NIfTI1 header extensions
199
if opts.store_header:
200
# dump the full PAR header content into an extension
201
- with open(infile, 'r') as fobj:
+ with open(infile, 'rb') as fobj: # contents must be bytes
202
hdr_dump = fobj.read()
203
dump_ext = nifti1.Nifti1Extension('comment', hdr_dump)
204
nhdr.extensions.append(dump_ext)
0 commit comments