propogate boolean semantics to sat signal
This commit is contained in:
parent
0603e219cb
commit
8a74b88369
1 changed files with 2 additions and 1 deletions
|
|
@ -58,7 +58,8 @@ def pointwise_sat(phi, dt=0.1):
|
|||
sig = booleanize_signal(sig)
|
||||
|
||||
if t is None:
|
||||
return [(t, v[phi]) for t, v in f(sig).items()]
|
||||
res = [(t, v[phi]) for t, v in f(sig).items()]
|
||||
return res if not quantitative else [(t, v > 0 for t, v in res)]
|
||||
|
||||
res = interp(f(sig), t, phi)
|
||||
return res if quantitative else res > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue