Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
force_calibration: tighten test tolerances
`Numpy` uses a small absolute tolerance as the default for checking closeness (probably to make checks against zero possible). See: https://numpy.org/doc/stable/reference/generated/numpy.isclose.html?highlight=isclose#numpy.isclose However, this can be problematic when values being compared are very small (as big relative differences will still fall under the tolerance). The `isclose` in `math` actually uses the safer zero absolute tolerance as default: https://docs.python.org/3/library/math.html#math.isclose Interesting discussion here: numpy/numpy#10161
- Loading branch information
1 parent
b180068
commit f02d34e
Showing
3 changed files
with
17 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters