Repository navigation
Fix record parsing with NumPy 2 - #14
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
TypeError: data type '|a5' not understoodraised when creatingnp.dtypebecause the|a5alias was removed in NumPy 2..gcvbackground-error records so binary parsing remains correct.Description
|a5dtype with the supported fixed-width byte-string dtypeS5for the eight identifier fields (sf,vp,t,q,oz,cw,ps,sst) ingsiberror/__init__.py.git diff --checkstyle checks.Testing
python -m compileall -q gsiberrorwhich completed successfully though it emitted preexistingSyntaxWarnings unrelated to this change.git diff --checkand a code search (rg) to confirm removal of|a5and presence ofS5in the updated fields, both of which passed.numpy>=2and run an end-to-end runtime test but installation failed due to the environment network/proxy restrictions, so runtime verification against NumPy 2 could not be executed.Codex Task