fix timed until

This commit is contained in:
Marcell Vazquez-Chanlatte 2020-04-06 13:04:04 -07:00
parent 31c3d3bead
commit 74f6efa314
2 changed files with 14 additions and 3 deletions

View file

@ -125,7 +125,12 @@ def eval_mtl_g(phi, dt):
return min(val[phi.arg])
def _eval(x):
return f(x).rolling(a, b).map(_min, tag=phi)
tmp = f(x)
assert b >= a
if b > a:
return tmp.rolling(a, b).map(_min, tag=phi)
return tmp.retag({phi.arg: phi})
return _eval