roocs / clisops

Climate Simulation Operations
https://clisops.readthedocs.io/en/latest/
Other
21 stars 9 forks source link

fix subset_bbox with level_values #263

Closed cehbrecht closed 1 year ago

cehbrecht commented 1 year ago

Pull Request Checklist:

subset_bbox raise an exception when used both with area and level_values parameter:

subset_level_by_values got multiple values for argument level_values

This PR fixes this issue. The parameter keyword level_values was missing needed by the check_levels_exist decorator.

See rooki notebook to reproduce the issue: https://nbviewer.org/github/roocs/rooki/blob/master/notebooks/demo/rook-errors-2022-12-08.ipynb