Skip to content

Commit

Permalink
Merge pull request #56 from metno/eea-all-validities
Browse files Browse the repository at this point in the history
Eea all validities
  • Loading branch information
heikoklein authored Jan 7, 2025
2 parents 5224549 + 00f5239 commit 76acc8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyaro_readers/eeareader/EEATimeseriesReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, data, variable: str) -> None:
def units(self) -> str:
units = self._data["Unit"].unique()
if len(units) == 0:
return EEAReaderException("No units present in this dataset")
raise EEAReaderException("No units present in this dataset")
elif len(units) != 1:
raise EEAReaderException("Multiple different units present in this dataset")
return units[0]
Expand Down Expand Up @@ -175,7 +175,7 @@ def _transform_filters(
filters: Iterable[pyaro.timeseries.Filter.Filter], variable_id: int
) -> _Filters:
pollutant_filter = ("Pollutant", "=", variable_id)
validity_filter = ("Validity", "=", 1)
validity_filter = ("Validity", ">", 0)

pyarrow_filters_daily = [pollutant_filter, validity_filter]
pyarrow_filters_hourly = pyarrow_filters_daily.copy()
Expand Down

0 comments on commit 76acc8e

Please sign in to comment.