Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reading from BytesIO #125

Merged
merged 15 commits into from
Sep 3, 2022
Merged

Conversation

addisonElliott
Copy link
Collaborator

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.

@addisonElliott addisonElliott merged commit f4b1ba1 into mhe:master Sep 3, 2022
@addisonElliott addisonElliott deleted the minor-fixes branch September 3, 2022 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant