Skip to content

Commit

Permalink
Merge pull request #10 from OpheliaMiralles/fix-missing-date-normaliz…
Browse files Browse the repository at this point in the history
…ation

Normalize missing dates before removing time zone. Thanks to @OpheliaMiralles
  • Loading branch information
floriankrb authored Aug 2, 2024
2 parents cfe6384 + 0f71b7e commit 7b3fb1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/anemoi/datasets/dates/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 7b3fb1b

Please sign in to comment.