File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ def _write_header(fileobj, header):
241
241
"count" , "datatype" , "file" ] # Fields being replaced.
242
242
243
243
lines = []
244
- lines .append (header [Field .MAGIC_NUMBER ])
244
+ lines .append (asstr ( header [Field .MAGIC_NUMBER ]) )
245
245
lines .append ("count: {0:010}" .format (header [Field .NB_STREAMLINES ]))
246
246
lines .append ("datatype: Float32LE" ) # Always Float32LE.
247
247
lines .extend (["{0}: {1}" .format (k , v )
@@ -298,7 +298,8 @@ def _read_header(fileobj):
298
298
299
299
with Opener (fileobj ) as f :
300
300
# Read magic number
301
- magic_number = asstr (f .fobj .readline ()).strip ()
301
+ #magic_number = asstr(f.fobj.readline()).strip()
302
+ magic_number = f .fobj .readline ().strip ()
302
303
303
304
# Read all key-value pairs contained in the header.
304
305
buf = asstr (f .fobj .readline ())
You can’t perform that action at this time.
0 commit comments