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
Refactor astroquery.heasarc to use VO protocols #2997
base: main
Are you sure you want to change the base?
Conversation
Hello @zoghbi-a! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-05-15 14:58:22 UTC |
43e9fe4
to
7f74228
Compare
What is the motivation for this? Are there any datasets that are only accessible using the webform, but not the VO backends? (If the only motivation is to keep what has been here, then it's not necessary, removing everything as part of the refactor is totally fine. Ideally, the old user codes should keep working, but with such a large backend restructure we also have precedence for breaking those) Doing a proper review may take me until I'm back from the interop. |
All the tables should available through the new API, so it is kept in case some people are using it. If it is ok to remove the old class, I don't see a stopper. |
A rename doesn't really solve this scenario, as the continued support would have only worked if the name was kept the same, maybe with a deprecation warning. So, before diving into a review, I would suggest cleaning up the old class. Maybe try to keep as much of the test examples/docs examples working as possible, or maybe working with a deprecation warning (e.g. in case some of the keywords need to be dropped, or renamed). |
The new class implements most of the useful methods of the old class with a deprecation warning. I will then delete the old class and keep the methods and warnings in the new class. |
a746966
to
354384f
Compare
354384f
to
baf95ed
Compare
This a major refactor of the
heasarc
module to use the VO interface to the archive. The main motivation is:The main changes inlcude:
HeasarcClass
->HeasarcBrowseClass
. The initialized instance is also renameHeasarc
->HeasarcBrowse
. The same for the test files.HeasarcClass
class uses an interface similar to those used in other modules e.g. ipac.irsa.