-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
Gaia class launch_job returns capitalizes DESIGNATION column name #2911
Comments
Hi @adrn, here you have my 2 cents: if you download the results as a votable (job = Gaia.launch_job(query,dump_to_file=True)) you can find the following Could it be that the column name is read from the 'ID' instead of from the 'name'? I am not an expert in astropy, but I found the following method in votable/connect/read_table_votable |
I would say this is upstream, the capitalization is coming directly from the server and astropy defaults to using (In astropy, when both present |
OK, so a bit more digging: If you use PyVO for the direct TAP query, you get the lower case column name, but in the repr, and only because we have specifically set Anyway, I also found the difference between calling the module and TapPlus. You have used a different So with this, the horse is beaten dead, and I will close this issue as upstream. If @cosmoJFH or others at ESA think that we should work around this, it's their decision and I'll merge their PR that would either opt in |
Hello!
I noticed something strange today with the
astroquery.gaia.Gaia
class: the table resulting from alaunch_job()
query has all lower-cased column names except for DESIGNATION, which is in all caps. If you query the Gaia archive via their web interface, all column names are returned in lower case. Also, if you use the astroqueryTapPlus
class directly to query the Gaia archive, designation appears in lower case. I don't see anything obvious that would capitalize that one column in the source code. Is this intended behavior? Do you have any other ideas for what could be going on?Here is a demonstration with the latest dev version of astroquery:
https://gist.github.com/adrn/2dc9d901aa082e971aa650d357e5b59d
The text was updated successfully, but these errors were encountered: