-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
TST: Handle flaky scipy 1.13 in OSX ARM64 #16329
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ as methods on the coordinate objects. | |
In the examples below, we will assume that the following imports have already | ||
been executed:: | ||
|
||
>>> import numpy as np | ||
>>> import astropy.units as u | ||
>>> from astropy.coordinates import SkyCoord | ||
|
||
|
@@ -250,7 +251,7 @@ the catalog: | |
.. doctest-requires:: scipy | ||
|
||
>>> matches = catalog[idx] | ||
>>> (matches.separation_3d(c) == d3d).all() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this one is correct, I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would wait to see what scipy end up doing if we going to pin in #16330 , just in case if their fix also get rid of the need to update this. |
||
>>> np.allclose(matches.separation_3d(c), d3d) | ||
True | ||
>>> dra, ddec = c.spherical_offsets_to(matches) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to avoid going with this patch if we can. The behavior isn't flaky, per say: it's deterministic. I'm working on reducing the reproducer outside of astropy so scipy folks can inspect what's going on more easily.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can go with #16330 instead but I'd rather not have our CI red until scipy has time to fix it. Thanks for the quick feedback!