Skip to content
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

BUG: duplicated class names #399

Closed
bsipocz opened this issue Jan 14, 2023 · 5 comments · Fixed by #419
Closed

BUG: duplicated class names #399

bsipocz opened this issue Jan 14, 2023 · 5 comments · Fixed by #419

Comments

@bsipocz
Copy link
Member

bsipocz commented Jan 14, 2023

In the case of SIA and SIAv2 SIAService, SIAQuery, SIAResults are shared names between the two services. However, they are not compatible, and in practice SIAv2 is totally missing from the documentation.

I would suggest to rename the classes in siav2.py (with a deprecation for the current names), or come up with a way that enables someone to nicely use both SIA and SIAv2 in the same code.

(This came up during investigating the missing services in the registry search reported in #397)

@msdemlei
Copy link
Contributor

msdemlei commented Jan 16, 2023 via email

@andamian
Copy link
Contributor

Isn't SIA2 supposed to eventually supersede SIA? Wasn't that the reason for v2?

@bsipocz
Copy link
Member Author

bsipocz commented Jan 17, 2023

I'm happy to make the PR for this, once there is an agreement.

IMO now that both SIA and v2 exists, they should both be supported in pyvo as there are archives that have datasets for either. I'm ok if v2 eventually overtakes, and then think that maybe the renaming should go the other way. Or making SIA private and accessible with a kwarg (but that would be a serious API change).

@msdemlei
Copy link
Contributor

msdemlei commented Jan 17, 2023 via email

@msdemlei
Copy link
Contributor

msdemlei commented Jan 17, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants