Added unit test for parasitic error
This commit is contained in:
parent
e3a17240db
commit
773f19ee36
2 changed files with 11 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ class ParasiticMotionError(Exception):
|
|||
pass
|
||||
|
||||
|
||||
def parasitic_detect(delta: float, max_allowed_delta: float) -> None:
|
||||
def _parasitic_detect(delta: float, max_allowed_delta: float) -> None:
|
||||
"""Compare two values and raise parasitic motion error."""
|
||||
if delta > max_allowed_delta:
|
||||
raise ParasiticMotionError(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue