Add logic to correctly handle reading from BytesIO objects. Previously, parsing the data used np.fromfile which does not support BytesIO objects. This is fixed by using np.frombuffer and np.fromstring to read in BytesIO objects.
np.fromfile does not work with BytesIO objects and therefore caused
Additionally, tests for reading/writing from BytesIO objects were enhanced.
Add logic to correctly handle reading from BytesIO objects. Previously, parsing the data used
np.fromfile
which does not support BytesIO objects. This is fixed by usingnp.frombuffer
andnp.fromstring
to read in BytesIO objects.np.fromfile
does not work withBytesIO
objects and therefore causedAdditionally, tests for reading/writing from BytesIO objects were enhanced.