From 0f71b7e7ea837d3fc954e94e9b9b4e48d493a1a7 Mon Sep 17 00:00:00 2001 From: omiralles Date: Thu, 25 Jul 2024 20:50:05 +0200 Subject: [PATCH] Normalize missing dates before removing time zone --- src/anemoi/datasets/dates/groups.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/anemoi/datasets/dates/groups.py b/src/anemoi/datasets/dates/groups.py index d73bc91d..65fcfa22 100644 --- a/src/anemoi/datasets/dates/groups.py +++ b/src/anemoi/datasets/dates/groups.py @@ -9,7 +9,7 @@ import itertools from anemoi.datasets.dates import Dates -from anemoi.datasets.dates import no_time_zone +from anemoi.datasets.dates import normalize_date class Groups: @@ -67,7 +67,7 @@ def __repr__(self): class Filter: def __init__(self, missing): - self.missing = [no_time_zone(m) for m in missing] + self.missing = [normalize_date(m) for m in missing] def __call__(self, dates): return [d for d in dates if d not in self.missing]