Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Nov 19, 2024
1 parent d3b1f5f commit cc05640
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/anemoi/inference/inputs/ekd.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import numpy as np
from earthkit.data.indexing.fieldlist import FieldArray
from earthkit.data.utils.dates import to_datetime

from ..checks import check_data
from ..input import Input
Expand Down Expand Up @@ -119,6 +120,7 @@ def _create_input_state(
"%s: `date` not provided, using the most recent date: %s", self.__class__.__name__, date.isoformat()
)

date = to_datetime(date)
dates = [date + h for h in self.checkpoint.lagged]
date_to_index = {d.isoformat(): i for i, d in enumerate(dates)}

Expand Down

0 comments on commit cc05640

Please sign in to comment.