Skip to content

Commit

Permalink
fix the uncertainty names for the attributes
Browse files Browse the repository at this point in the history
they have an extra "_", we removed it.
  • Loading branch information
garciampred committed Dec 10, 2024
1 parent 9404230 commit b028509
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cdsobs/retrieve/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,18 @@ def retrieve_observations(
global_attributes = get_service_definition(
retrieve_args.dataset
).global_attributes
cdm_lite_vars = list(itertools.chain.from_iterable(cdm_lite_variables.values()))
field_attributes = cdm_lite_variables["attributes"]
cdm_lite_vars = list(
set(itertools.chain.from_iterable(cdm_lite_variables.values()))
)
context = Context()
output_path = retrieve_data(
retrieve_args.dataset,
retrieve_args.params.model_dump(),
output_dir,
object_urls,
cdm_lite_vars,
field_attributes,
global_attributes,
context,
)
Expand Down

0 comments on commit b028509

Please sign in to comment.