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

Numpy Header Stream Offset #164

Merged
merged 2 commits into from
Jun 17, 2024
Merged

Numpy Header Stream Offset #164

merged 2 commits into from
Jun 17, 2024

Conversation

swashko
Copy link
Collaborator

@swashko swashko commented Jun 13, 2024

Model class addition resets the stream to position 0 on every call to get_stream, causing scan of numpy array files to give a genops error since the header is not valid as pickle bytes

This offsets the start of the _list_globals call and thus the pickle genops call to after the header in those cases (numpy scan with a valid magic number header)

@swashko swashko self-assigned this Jun 13, 2024
Copy link
Member

@willarmiros willarmiros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Cool issue

@swashko swashko merged commit 27dc4b9 into main Jun 17, 2024
8 checks passed
@swashko swashko deleted the numpy-fix branch June 17, 2024 23:34
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.

2 participants