-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
access_url behaviour change to raise a deprecation rather than error #340
Comments
There is a warning now, though, that ought to tip people off when things go wrong. See also #340; it does not directly address the problem outlined there. Relatedly, we now properly parse the arrays-in-strings we get back from TAP. So far, an empty result yielded [""] in the array of, e.g., access_url. We ought to have proper string arrays in VOTable one day.
PR #341 addresses using access_url on a resource directly. It also adds an access_url column in the result of get_summary. However, we can't really bring back access_url to to_table -- that would require an access_url column in the query result, and there's no sane way to have that. I'm afraid the legacy behaviour was based on the wrong assumption that there is one access URL per resource, which is simply not true. I note in passing that the use in the NAVO notebook (I've looked at UseCase_II) is purely informational, that is, it just shows the results for demonstration and does not use the access_url any more. This kind of use is what get_summary is for. That, however, doesn't have ivoid (I don't think that's human-readable and hence I'd argue it doesn't belong there), though, so we'd have to ask the authors to change to:
But frankly, get_summary() is there exactly for displaying a human-readable table, so I'd say they should use get_summary() directly. There is no filtering facility on RegistryResults yet. Do we want to support that? Or can we get away just saying "Well, run a new query with |
We'll be changing the notebooks themselves and bump the version number to require pyvo 1.4, so I was mentioning them mostly as a demonstration that users may use the previous API in similar ways we did and thus end with errors. |
(The one minor issue with |
#341 doesn't address the fact that As far as I can tell, there was never any documentation guaranteeing the columns that would result from |
Based on the discussion here and offline, I think we can proceed without raising deprecation regarding the |
I think it should be considered to use deprecations for the change of behavior in
access_url
, keeping the old behavior of returning the first element fromaccess_urls
along with the warnings, rather than raising the exception straight away.I milestone this issue is only relevant before the 1.4 release.
The text was updated successfully, but these errors were encountered: