Skip to content

Commit

Permalink
Switch updating time stamp to update with time stamp after predicting (
Browse files Browse the repository at this point in the history
  • Loading branch information
lahramon authored Nov 20, 2023
1 parent 5a558e5 commit 41c7d0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions probdiffeq/solvers/strategies/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ def init(self, t, posterior, /) -> _State:
def predict_error(self, state: _State, /, *, dt, vector_field):
"""Predict the error of an upcoming step."""
hidden, extra = self.extrapolation.begin(state.hidden, state.aux_extra, dt=dt)
t = state.t + dt
error, observed, corr = self.correction.estimate_error(
hidden, state.aux_corr, vector_field=vector_field, t=state.t
hidden, state.aux_corr, vector_field=vector_field, t=t
)
t = state.t + dt
state = _State(t=t, hidden=hidden, aux_extra=extra, aux_corr=corr)
return error, observed, state

Expand Down

0 comments on commit 41c7d0c

Please sign in to comment.