Skip to content

Commit

Permalink
Rounding of GRIB grid
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Jun 5, 2024
1 parent ef4ae3d commit 7130984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/climetlab/sources/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def find_numbers(source_or_dataset):
source_or_dataset, "unique_values"
), f"{source_or_dataset} (type '{type(source_or_dataset).__name__}') is not a proper source or dataset"

return source_or_dataset.unique_values("number", patches={"number": {None: 0}})["number"]
return source_or_dataset.unique_values("number", patches={"number": {None: 0}}).get("number", 0)

def find_dates(source_or_dataset):
if "date" not in self.request and "time" in self.request:
Expand Down

0 comments on commit 7130984

Please sign in to comment.