From f983259fc347cb5b2988727e0e7c1308d92525c9 Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 24 Apr 2024 14:21:36 +0200 Subject: [PATCH] :bug: make testing of minor function for creating fake data more robust - not really used anymore, but was handy while developing ideas --- tests/test_helpers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_helpers.py b/tests/test_helpers.py index fcde11887..3e199940d 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -1,6 +1,5 @@ import numpy as np - from vaep.utils import create_random_missing_data @@ -8,4 +7,4 @@ def test_create_random_missing_data(): data = create_random_missing_data(N=43, M=13, prop_missing=0.2) assert data.shape == (43, 13) assert np.isnan(data).sum() - assert abs((float(np.isnan(data).sum()) / (43 * 13)) - 0.2) < 0.05 + assert abs((float(np.isnan(data).sum()) / (43 * 13)) - 0.2) < 0.1