Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Oct 18, 2024
1 parent b71c97d commit 32c48a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/nwp_consumer/internal/service/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,9 @@ def _generate_encoding(ds: xr.Dataset) -> dict[str, dict[str, str] | dict[str, B

def _dataQualityFilter(ds: xr.Dataset) -> bool:
"""Filter out data that is not of sufficient quality."""

log.info(event="Checking data quality")

if ds == xr.Dataset():
return False

Expand All @@ -421,6 +424,8 @@ def _dataQualityFilter(ds: xr.Dataset) -> bool:
variable=data_var,
)

log.info(event="Checking data quality: Complete")

return True


Expand Down

0 comments on commit 32c48a8

Please sign in to comment.