-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
Better migration simbad #3186
base: main
Are you sure you want to change the base?
Better migration simbad #3186
Conversation
6c8c6ed
to
9f6d97a
Compare
Hello @ManonMarchand! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2025-01-21 17:36:10 UTC |
9f6d97a
to
01a8158
Compare
01a8158
to
668edf3
Compare
Thanks Manon! I won't backport but can do a new tagged release, so people can get all the fixes we did since the release. |
That would be nice, I hope there is nothing else remaining |
(I also got feedback from the astronomer in charge of SIMBAD's scientific content that |
I'll try to do one towards the end of the week once a few more quick bugfixes are in, too. |
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.
Looks good, thank you. One minor comment on the deprecation message.
Switching it to draft. I'll port all our internal tutorials from the point of view of someone who has no idea about the refactor to see if I find more pain points. This way I might catch some other deprecation messages that are unclear or buggy. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3186 +/- ##
=======================================
Coverage ? 67.42%
=======================================
Files ? 229
Lines ? 18612
Branches ? 0
=======================================
Hits ? 12550
Misses ? 6062
Partials ? 0 ☔ View full report in Codecov by Sentry. |
af6a90f
to
59ed410
Compare
or at least return better error messages for the fields that don't exist anymore
59ed410
to
9a7610d
Compare
I added One thing that appeared in the investigation is the new case-sensitivity of |
This PR fixes the two points raised by #3185
On the deprecated notation
flux(XXX)
There was a bug when adding a list of fluxes with the deprecated API:
would error instead of just warn. This was due to a nasty modification of a list in the loop that was iterating over it (introduced in #3052).
On votable fields
I figured that I based my deprecations / changes of names on the old SIMBAD API docs, and not on astroquery docs. They did not have exactly the same fields. This is the second commit of this PR. It:
dec_prec
,diameter
,otype(3)
,otype(s)
,pm
,ra_prec
(all from deprecated API, they now raise a warning stating the new name instead of failing)otype(V)
andotype(S)
that had a case issue (but are deprecated)td1
,sp_nature
,pos
,posa
,typed_id
,ubv
,uvby1
,uvby
ra(d)
anddec(d)
as aliases forra
anddec
It would be very nice if these two changes could be back-ported to astroquery v0.4.8 as these only affect the deprecated API, and thus people migrating from 0.4.7.