don't propogate sympy in robustness if unnecessary
This commit is contained in:
parent
99e0995287
commit
8b2a114826
2 changed files with 7 additions and 3 deletions
|
|
@ -66,5 +66,7 @@ def eval_terms(lineq, x, t):
|
|||
|
||||
|
||||
def eval_term(x, t):
|
||||
# TODO(lift interpolation much higher)
|
||||
return lambda term: term.coeff*np.interp(t, x.index, x[term.id.name])
|
||||
def _eval_term(term):
|
||||
coeff = float(term.coeff) if term.coeff.is_number else term.coeff
|
||||
return coeff*np.interp(t, x.index, x[term.id.name])
|
||||
return _eval_term
|
||||
|
|
|
|||
|
|
@ -33,7 +33,9 @@ def type_pred(*args:List[Type]) -> Mapping[Type, bool]:
|
|||
def _child_lens(psi:STL, focus:Lens) -> STL_Generator:
|
||||
if psi is None:
|
||||
return
|
||||
if isinstance(psi, NaryOpSTL):
|
||||
elif psi is stl.TOP or psi is stl.BOT:
|
||||
return
|
||||
elif isinstance(psi, NaryOpSTL):
|
||||
for j, _ in enumerate(psi.args):
|
||||
yield focus.args[j]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue