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
sunpy 5.1.1 + pytest 8 on armel & mips64el error #7550
Comments
Thanks for the bug report (and testing sunpy on other platforms) we will try and take a look. |
Apparently, on mips64el, sunpy/sunpy/coordinates/frames.py Line 581 in 386e540
since in our specific case, the NaNs are from taking the square root of a negative number. |
This looks to be a bug in Python, which was only fixed in python/cpython#104202 which came out in 3.12. |
I have to say I don't think it would be worth us working around this for an architecture I very much doubt anyone is using SunPy on 😁 |
It looks like dividing by zero on ARM (with software floating point?) might not always raise a NumPy warning. See scikit-image/scikit-image#3335 for a similar-sounding issue. We can easily change the warning catching to be a warning squashing (using |
Upon further poking, the fact that we are even dividing in that situation is a bug, so #7551 stops that from happening |
Indeed, for the silx package in Debian, we skip the problematic test on mips64el https://salsa.debian.org/science-team/silx/-/blob/master/debian/patches/0009-Skip-testing-nanmin-on-float64-arrays-on-mips-el.patch?ref_type=heads Shall I do the same for sunpy and the |
That CPython PR changed things, but evidently did not resolve this issue because the debian log shared above has the test failing under Python 3.12.2.
After discussion among the development team, our preference is to simply skip this doctest. Modifying our code would be clunky and/or affect performance for non-mips64el platforms. |
Odd indeed! |
Thanks @mr-c |
Describe the bug
Building sunpy 5.1.1 with Pytest 8.1.1 + #7429 we still get two errors:
On armel (arm32v5):
test_map_arithmetic_operations_raise_exceptions[map-warn_context0]
fails,DID NOT WARN. No warnings of type (<class 'RuntimeWarning'>,) were emitted.
https://buildd.debian.org/status/fetch.php?pkg=sunpy&arch=armel&ver=5.1.1-4&stamp=1712238082&raw=0
On mips64el:
[doctest] sunpy.coordinates.frames.Helioprojective.assume_spherical_screen
:https://buildd.debian.org/status/fetch.php?pkg=sunpy&arch=mips64el&ver=5.1.1-4&stamp=1712238826&raw=0
Any guidance on how we shall fix this?
To Reproduce
Here's a dockerfile, build it with
--platform=linux/arm/v5
or--platform=linux/mips64le
For reference, all the extra patches we apply to Sunpy 5.1.1 are at https://salsa.debian.org/debian-astro-team/sunpy/-/tree/master/debian/patches?ref_type=heads
Screenshots
No response
System Details
Installation method
from source (.tar.gz)
The text was updated successfully, but these errors were encountered: