You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this, we add two methods to `symforce.sympy`:
- `sm.default_epsilon`, and
- `sm.set_default_epsilon`.
With these, the user can set the value returned by
`sm.default_epsilon` to be any value they'd like using
`sm.set_default_epsilon`. Currently, if the user doesn't
set the default epsilon, I default it to `0.0` (this could
be trivially changed though).
`sm.set_default_epsilon` can only be called if the `sm.default_epsilon`
hasn't yet been called (raises an `AlreadyUsedDefaultEpsilon`
exception). This is to ensure that the default epsilons are consistent
between different functions (as I imagine it would lead to confusing
behavior if that weren't enforced).
Topic: fixed_default_epsilon
Relative: use_default_epsilon
GitOrigin-RevId: 73757807f84f4e9430d84740b3fdfe8a6a479421
0 commit comments