From 7f5ee08df30597fc5e52d2b6f1313950794c9769 Mon Sep 17 00:00:00 2001 From: patrick-schultz Date: Thu, 30 Nov 2023 15:54:03 -0500 Subject: [PATCH] [query] increase tolerance in approx_cdf tests We observed some sporadic failures, but the error was always less than .011. This raises the tolerance to .015, which should be a comfortable margin. --- hail/python/test/hail/expr/test_expr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hail/python/test/hail/expr/test_expr.py b/hail/python/test/hail/expr/test_expr.py index 18b9185c310..f17549fbe63 100644 --- a/hail/python/test/hail/expr/test_expr.py +++ b/hail/python/test/hail/expr/test_expr.py @@ -3932,7 +3932,7 @@ def test_approx_cdf_accuracy(cdf_test_data): t = cdf_test_data cdf = t.aggregate(hl.agg.approx_cdf(t.idx, 200)) error = cdf_max_observed_error(cdf) - assert(error < 0.01) + assert(error < 0.015) def test_approx_cdf_all_missing(): @@ -3972,7 +3972,7 @@ def test_cdf_combine(cdf_test_data): cdf = _cdf_combine(200, cdf1, cdf2) cdf = hl.eval(_result_from_raw_cdf(cdf)) error = cdf_max_observed_error(cdf) - assert(error < 0.01) + assert(error < 0.015) def test_approx_cdf_array_agg():