Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix read_asdf on rv data #165

Merged
merged 3 commits into from
Dec 22, 2024
Merged

Fix read_asdf on rv data #165

merged 3 commits into from
Dec 22, 2024

Conversation

lgarrison
Copy link
Member

In changing how unpack_rvint handled shapes in 2597bbd, we neglected to change how it handled the case where the posout array was being provided by the user. That's mostly because it uses the tricky idiom arr.shape = -1, which is a way of doing np.reshape(..., copy=False) (only available since NumPy 2.1). The fix is just to do arr.shape = (-1, 3).

This PR also adds a test for read_asdf on rvint and pid data. Previously it was only being tested on pack9 data, which is why the tests didn't catch this.

Fixes #164.

@lgarrison lgarrison merged commit 10d3f30 into main Dec 22, 2024
8 checks passed
@lgarrison lgarrison deleted the fix-read_asdf branch December 22, 2024 12:28
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

numba TypingError in current main version
1 participant