VlachosGroup / pMuTT

Python Multiscale Thermochemistry Toolbox (pMuTT)
https://vlachosgroup.github.io/pMuTT/
40 stars 23 forks source link

Invalid unit tests: assert_almost_equal #198

Open jonlym opened 2 years ago

jonlym commented 2 years ago

Many floating point unit tests use numpy's assert_almost_equal. However, this sometimes incorrectly passes for very small numbers. Instead, we should use assert_allclose instead.