Skip to content

Commit 0e27359

Browse files
authored
Merge pull request #549 from alcoat/graphcast_date_limit
fix #544
2 parents 1da0f22 + 38d71fc commit 0e27359

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/test_gfs.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,14 @@ def test_gfs():
3535
H.xarray(filter)
3636

3737
def test_graphcast():
38+
39+
end_date = datetime(2026,5,5)
40+
the_date = today-timedelta(hours=12)
41+
if the_date > end_date:
42+
the_date = end_date
43+
3844
H = Herbie(
39-
today-timedelta(hours=12),
45+
the_date,
4046
priority="aws",
4147
product="pgrb2.0p25",
4248
model="graphcast",

0 commit comments

Comments
 (0)