diff options
author | Arun Isaac | 2021-11-11 14:43:37 +0530 |
---|---|---|
committer | BonfaceKilz | 2021-11-11 20:49:30 +0300 |
commit | fb92e75b8e9984fbbf9b26f87b53ea516a8819da (patch) | |
tree | 8c54998e266cbcc28481fdf8762334e743e9b6de /tests/unit/db/data | |
parent | 249b85102063debfeeb1b0565956059b8a3af1cf (diff) | |
download | genenetwork3-fb92e75b8e9984fbbf9b26f87b53ea516a8819da.tar.gz |
Compare floats approximately.
Floating point numbers should only be compared approximately. Different
implementations of functions might produce slightly different results.
* tests/unit/computations/test_correlation.py: Import assert_almost_equal from
numpy.testing.
(TestCorrelation.test_compute_correlation): Compare floats using
assert_almost_equal instead of assertEqual.
* tests/unit/test_heatmaps.py: Import assert_allclose from numpy.testing.
(TestHeatmap.test_cluster_traits): Use assert_allclose instead of assertEqual.
Diffstat (limited to 'tests/unit/db/data')
0 files changed, 0 insertions, 0 deletions