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

Queryables not showing possible values for a given parameter #1461

Open
amarandon opened this issue Nov 7, 2024 · 0 comments
Open

Queryables not showing possible values for a given parameter #1461

amarandon opened this issue Nov 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@amarandon
Copy link
Collaborator

In the Copernicus Atmosphere tutorial, there is an example about queryables which shows that we should be able to see possible values for a given parameter:

>>> queryables = dag.list_queryables(provider="cop_ads", productType="CAMS_EAC4")
>>> queryables["variable"]
typing.Annotated[typing.Literal['10m_u_component_of_wind', '10m_v_component_of_wind', '2m_dewpoint_temperature', '2m_temperature', 'acetone', 'acetone_product', 'aldehydes', 'amine', 'ammonia', 'ammonium', [...], 'vertically_integrated_mass_of_sea_salt_aerosol_5-20um', 'vertically_integrated_mass_of_sulphate_aerosol'], FieldInfo(annotation=NoneType, required=False, default='2m_dewpoint_temperature')]

However when I try it doesn't show possible values, the output is:

typing.Annotated[str, FieldInfo(annotation=NoneType, required=False, default='2m_dewpoint_temperature')]

Note however that when we request the queryables from the rest server, they are present:

>>> import requests
>>> response = requests.get("http://127.0.0.1:5000/collections/CAMS_EAC4/queryables?provider=cop_ads")
>>> response.json()["properties"]["cop_ads:variable"]["enum"][:10]
['10m_u_component_of_wind',
 '10m_v_component_of_wind',
 '2m_dewpoint_temperature',
 '2m_temperature',
 'acetone',
 'acetone_product',
 'aldehydes',
 'amine',
 'ammonia',
 'ammonium']
@amarandon amarandon added the bug Something isn't working label Nov 7, 2024
@amarandon amarandon assigned amarandon and unassigned amarandon Nov 7, 2024
@sbrunato sbrunato transferred this issue from CS-SI/eodag-cube Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant