-
Notifications
You must be signed in to change notification settings - Fork 153
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
Add a check for FITS files mistaken as ASCII to astropy_table_read
for Python 3.11 compatibility
#2321
Conversation
6fcbe9c
to
64b2860
Compare
Failure in |
95513fe
to
0c6e4a2
Compare
Somewhat unexpectedly just trying |
e37ac6d
to
30c94a4
Compare
To sum up some of the discussion in astropy/astropy#13670 (comment), a somewhat cleaner solution would indeed be to first try the read with automatic format recognition (which would correctly identify the FITS file) and then in case of failure make a second attempt with |
Matplotib 3.6.x |
@dhomeier - could you rebase this? The errorbar error should be gone now. |
astropy_table_read
for Python 3.11 compatibility
eac4afd
to
564a24c
Compare
macos: py311 probably needs brew |
I suspect macos: py311 yet needs something like |
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.
Since the Python 3.11 release is imminent, maybe we can wait a few days for this to see if we can at least avoid having to hard-code the Python version to rc2?
I think we'll probably just have to wait for h5py to have Python 3.11 wheels for things to work correctly on MacOS X, but since that isn't really a problem on our side we could just comment out the MacOS X Python 3.11 testing for now?
a9df4c9
to
fc2818a
Compare
Yes, having a default version to use in ci_workflows would be good. |
46a9cc7
to
5110309
Compare
No 3.11.0 for macOS yet. The Windows failures might rather be pandas errors. And this
seems just randomly broken today! |
new pytest was released too 😬 |
So that's the |
But generally, if |
Correct. |
So the |
@@ -74,6 +74,7 @@ all = | |||
scikit-image | |||
PyAVM | |||
astrodendro | |||
h5py>=2.10 |
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.
Why do you list h5py multiple times? Is the spec in install_requires
not enough?
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 would still install it in 3.11 with glueviz[all]
(I hope); the platform_system=="Linux"
in test
below is added as an OR
so we are still running the full tests with linux-py311
; the second python_version<'3.11'
there is redundant, admittedly.
Yes, if you deem it sufficient, you can close #2341 without merge and go with this PR. Thanks! |
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 looks good to me, feel free to merge once you get the CI to pass
macOS with 3.11 now works (without h5py); pyside63 seems a bit unstable... |
astropy_table_read
for Python 3.11 compatibilityastropy_table_read
for Python 3.11 compatibility
Description
Trying now that Astropy is testing with 3.11.0rc2