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

Error when uploading user tables using Gaia TAP+ in csv format; format must be Astropy table or VOTable #2529

Open
schen70 opened this issue Sep 15, 2022 · 2 comments

Comments

@schen70
Copy link

schen70 commented Sep 15, 2022

When uploading user tables using Gaia TAP+ (either Gaia.launch_job or Gaia.launch_job_async), if the uploaded file format is a csv file, it seems like it is not correctly parsed as a csv file, and the job instead tries to parse it as a VOTable, and fails as a result. It might be a good idea to add a field to explicitly provide the format, like in the Gaia.upload_table function.

Also, it would be good to clarify in the documentation what uploaded table formats are allowed. Such language is present in https://astroquery.readthedocs.io/en/latest/gaia/gaia.html#uploading-table-from-file, but not in https://astroquery.readthedocs.io/en/latest/gaia/gaia.html#synchronous-query-on-an-on-the-fly-uploaded-table.

@bsipocz
Copy link
Member

bsipocz commented Sep 26, 2023

Immediate workaround is to load the file into an astropy Table, and provide that as the argument for launch_job).

@cosmoJFH
Copy link

cosmoJFH commented Mar 23, 2024

We have checked that all the examples in

https://www.cosmos.esa.int/web/gaia-users/archive/programmatic-access#Sect_1_ss1.3

and

https://www.cosmos.esa.int/web/gaia-users/archive/programmatic-access#Sect_3_ss3.4

only make use of votables. This is due to the fact of the TAP recommendation
(https://www.ivoa.net/documents/TAP/20190927/REC-TAP-1.1.html#tth_sEc2.7.6): "If table upload is supported, the service must accept tables in VOTable format.".

But I fully agree that the this information must be included in the documentation of the functions launch_job and launch_job_async

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

No branches or pull requests

3 participants