-
-
Notifications
You must be signed in to change notification settings - Fork 427
Make utils.commons.parse_coordinates() work with astropy 5.0
#2196
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
Conversation
The exception handling in `astropy.coordinates` changed in version 5.0. This commit ensures `astroquery.utils.commons.parse_coordinates()` works with `astropy` 5.0 and also with the older versions.
Codecov Report
@@ Coverage Diff @@
## main #2196 +/- ##
==========================================
+ Coverage 66.10% 66.11% +0.01%
==========================================
Files 418 418
Lines 28167 28180 +13
==========================================
+ Hits 18619 18631 +12
- Misses 9548 9549 +1
Continue to review full report at Codecov.
|
|
Looks like this solves #2194? |
|
@bsipocz I'm pretty sure this does solve the broken CI issues. @eerovaher thank you! |
|
Thank you @eerovaher! |
|
@bsipocz @keflavich - just to check, are you planning a release of astroquery soon? If possible I would like to hold back from releasing astropy 5.0 until there is acompatible astroquery version so that users have a pathway to upgrade. |
|
Note that this still fails with 5.0rc2, I think because |
|
Yes, hopefully today, if not, then by the end of the week for sure. |
|
If you or someone else could open a PR that doesn't check the version, please do so. I have a lot of smallish PRs that needs to be done for the release, so this is not at the top of my personal list. |
An alternative would be to replace astroquery/astroquery/utils/commons.py Line 60 in 34a72df
with ASTROPY_LT_5_0 = not minversion('astropy', '5.0rc1') |
The exception handling in
astropy.coordinateschanged in version 5.0. This pull request ensuresastroquery.utils.commons.parse_coordinates()works withastropy5.0 and also with the older versions.Fixes #2194.