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 f5eafcf commit 8209664Copy full SHA for 8209664
nibabel/streamlines/tests/test_trk.py
@@ -103,7 +103,7 @@ def test_load_complex_file(self):
103
def trk_with_bytes(self, trk_key='simple_trk_fname', endian='<'):
104
""" Return example trk file bytes and struct view onto bytes """
105
with open(DATA[trk_key], 'rb') as fobj:
106
- trk_bytes = fobj.read()
+ trk_bytes = bytearray(fobj.read())
107
dt = trk_module.header_2_dtype.newbyteorder(endian)
108
trk_struct = np.ndarray((1,), dt, buffer=trk_bytes)
109
trk_struct.flags.writeable = True
0 commit comments