diff options
author | Arun Isaac | 2025-08-06 22:23:39 +0100 |
---|---|---|
committer | Arun Isaac | 2025-08-06 22:35:26 +0100 |
commit | a361ab834bd9ca6a324c832ffdaa6d74df94d995 (patch) | |
tree | 21d5f857747aa27f96f01164f6cddee77bf91a7e | |
parent | 4b4b6a7cca5a08b93aaabe0733e7593cd1cab259 (diff) | |
download | pyhegp-a361ab834bd9ca6a324c832ffdaa6d74df94d995.tar.gz pyhegp-a361ab834bd9ca6a324c832ffdaa6d74df94d995.tar.lz pyhegp-a361ab834bd9ca6a324c832ffdaa6d74df94d995.zip |
Loosen relative tolerance in test_pool_stats.
* tests/test_pyhegp.py (test_pool_stats): Set relative tolerance to 1e-6.
-rw-r--r-- | tests/test_pyhegp.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_pyhegp.py b/tests/test_pyhegp.py index 7f95215..c355df5 100644 --- a/tests/test_pyhegp.py +++ b/tests/test_pyhegp.py @@ -38,8 +38,10 @@ def test_pool_stats(pools): np.std(pool, axis=0, ddof=1)) for pool in pools]) assert (pooled_stats.n == len(combined_pool) - and pooled_stats.mean == approx(np.mean(combined_pool, axis=0)) - and pooled_stats.std == approx(np.std(combined_pool, axis=0, ddof=1))) + and pooled_stats.mean == approx(np.mean(combined_pool, axis=0), + rel=1e-6) + and pooled_stats.std == approx(np.std(combined_pool, axis=0, ddof=1), + rel=1e-6)) def no_column_zero_standard_deviation(matrix): return not np.any(np.isclose(np.std(matrix, axis=0), 0)) |