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
Conversation
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
👋 Thank you for your draft pull request! Do you know that you can use |
pre-commit.ci autofix |
d5d3ed2
to
a898ba3
Compare
# https://github.com/astropy/astropy/issues/16320 (scipy can be flaky in OSX ARM64) | ||
if sys.platform == "darwin": | ||
ctx = np.errstate(invalid="ignore") | ||
else: | ||
ctx = contextlib.nullcontext() | ||
with ctx: | ||
g = fitter(g_init, x, y) |
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!
@@ -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 comment
The 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 comment
The 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.
Description
This pull request is to