Bugfix: Download UCD1+ instead of UCD1 in Vizier client #3458
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi!
Problem
Found a bug: when trying to download a table from Vizier using
get_catalogs_asyncmethod (andget_catalogsas a consequence) the resulting table only contains UCD1 identifier instead of UCD1+. This is a bug and not a backwards compatibility feature because the comment in the code explicitly states that it wants to download newer version: https://github.com/astropy/astroquery/blob/main/astroquery/vizier/core.py#L691This results in a VOTable that only has older UCD1 syntax:
Instead of a UCD1+ one might expect:
Code to reproduce:
Solution
As UCD1+ is a newer syntax, I propose we just use it. To do that, as per Vizier spec, we only need to remove the
Uidentifier from-out.metaparameter that requests the data, see the diff in this PR.Potential compromises
This technically breaks backwards compatibility. As an alternative, we may pass some parameter to VizierClass instance that will query either new or old UCD syntax and which will default to old syntax. Not sure if this is necessary, though, as UCD1 was superseded by UCD1+ in 2005: https://www.ivoa.net/documents/REC/UCD/UCD-20050812.html