eso.query_instrument; limit output to specific columns
- Dominant language
- Python
- Stars
- 791
- Forks
- 451
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 4
Description
Hello,
I am exploring the data in the ESO Archive for one instrument and want to limit the number of columns returned. I expected that if I specified columns that the ourput would be limited to the specific columns specfied. It looks like a default set of columns are also returned. e.g.
eso.ROW_LIMIT = 99
table = eso.query_instrument('vircam', columns=['prog_id'])
print(table.columns)
This is list of columns is defined as the defaults here:
eso.query_instrument('vircam', help=True)
https://astroquery.readthedocs.io/en/latest/api/astroquery.eso.EsoClass.html#astroquery.eso.EsoClass.query_instrument
has:
columns: list of strings
Columns returned by the query.
Is there a way to limit the results to only the columns that I want?
Contributor guide
Research direction
Start at the astroquery.eso.EsoClass.query_instrument entry point and reproduce the vircam example with columns=['prog_id']. Compare the documented columns argument with the returned table columns; done means a query requesting specific columns returns only those columns, with coverage for the demonstrated behavior if the repository provides a relevant test location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100