Skip to content

Commit

Permalink
Removed duplicates from variable allowed_values (#320)
Browse files Browse the repository at this point in the history
## Overview

This PR fixes combability issue with Weaver/CWL

Changes:

* Removed duplicates from variables allowed_values
  • Loading branch information
perronld authored Nov 9, 2023
2 parents f258922 + 1df08ca commit b8dbec2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion finch/processes/wpsio.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,16 @@ def get_ensemble_inputs(novar=False):
default=None,
min_occurs=0,
allowed_values=list(
chain(*[d.allowed_values["variable"] for d in datasets_config.values()])
set(
list(
chain(
*[
d.allowed_values["variable"]
for d in datasets_config.values()
]
)
)
)
),
)
return dataset, scenario, models, variable
Expand Down

0 comments on commit b8dbec2

Please sign in to comment.