Force little endian input for zarr by olebole · Pull Request #492 · astropy/reproject · GitHub
Skip to content

Force little endian input for zarr#492

Merged
astrofrog merged 1 commit into
astropy:mainfrom
olebole:fix-bigendian
Mar 13, 2025
Merged

Force little endian input for zarr#492
astrofrog merged 1 commit into
astropy:mainfrom
olebole:fix-bigendian

Conversation

@olebole

@olebole olebole commented Mar 11, 2025

Copy link
Copy Markdown
Member

I think I found the cause for the failures in #491: One is what was already mentioned in #487 (review), and the other is similar in reproject/common.py. The reason why the patch shown in #491 didn't work was that the second patch in reproject/utils.py was actually wrong.

I applied this PR to the Debian package (merged with #487), and now all tests pass on s390x.

Disclaimer: This is a fix by a "poor stranger". I didn't dig into the structure of reproject for this but just fixed what could cause the failures. There may be other places with a similar issue, or side effects that are not covered by the CI tests. So, please carefully review whether this does what is intended, beside the CI.

Closes: #491

This fixes CI test failures on bigendian machines like s390x.
@codecov

codecov Bot commented Mar 11, 2025

Copy link
Copy Markdown

@astrofrog

Copy link
Copy Markdown
Member

@astrofrog astrofrog merged commit ddda375 into astropy:main Mar 13, 2025
@astrofrog astrofrog added the bug label Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test failures on big endian machines

2 participants