Skip to content

Commit

Permalink
Add explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
ctessum committed Sep 3, 2024
1 parent 0982a1f commit 0f5b545
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/load.jl
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ Interpolate without checking if the data has been correctly loaded for the given
try
itp.itp(locs..., datetime2unix(t))
catch err
# FIXME(CT): This is needed because ModelingToolkit sometimes
# calls the interpolator for the beginning of the simulation time period,
# and we don't have a way to update for that proactively.
lazyload!(itp, t)
itp.itp(locs..., datetime2unix(t))
end
Expand Down

0 comments on commit 0f5b545

Please sign in to comment.