Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove assertion limiting datetimes to 0,6,12,18 #62

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ authors:
family-names: Dramsch
affiliation: ECMWF
orcid: 'https://orcid.org/0000-0001-8273-905X'
- given-names: Harrison
family-names: Cook
affiliation: ECMWF
orcid: 'https://orcid.org/0009-0009-3207-4876'
- given-names: Matthew
family-names: Chantry
affiliation: ECMWF
Expand Down
4 changes: 2 additions & 2 deletions src/ai_models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def _datetimes(self, dates):
assert isinstance(time, int)
if time < 100:
time *= 100
assert time in (0, 600, 1200, 1800), time
# assert time in (0, 600, 1200, 1800), time

lagged = self.lagged
if not lagged:
Expand Down Expand Up @@ -300,7 +300,7 @@ def datetimes(self, step=0):
if time < 100:
time *= 100

assert time in (0, 600, 1200, 1800), time
# assert time in (0, 600, 1200, 1800), time

full = datetime.datetime(
date // 10000,
Expand Down
Loading