Ensure time remains positive following a timeshift
This commit is contained in:
parent
4f138133ef
commit
f3b84ef0fd
2 changed files with 11 additions and 1 deletions
|
|
@ -150,7 +150,8 @@ def eval_mtl_next(phi, dt):
|
|||
f = eval_mtl(phi.arg, dt)
|
||||
|
||||
def _eval(x):
|
||||
return (f(x) << dt).retag({phi.arg: phi})
|
||||
v = (f(x) << dt)
|
||||
return v[max(v.start, 0):].retag({phi.arg: phi})
|
||||
|
||||
return _eval
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue