From 617c20d7d5a5a8c048927bbb6b36dfc33056ae41 Mon Sep 17 00:00:00 2001 From: Danila Bredikhin Date: Fri, 13 Oct 2023 02:06:06 +0200 Subject: [PATCH] Fix precision in tests --- tests/test_anndata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_anndata.py b/tests/test_anndata.py index 6d97e1e..9f0ce18 100644 --- a/tests/test_anndata.py +++ b/tests/test_anndata.py @@ -60,11 +60,11 @@ def test_multi_group(self, filepath_hdf5): assert all(adata.obs.group.values == adata.obs.true_group.values) for sample, value in ( - ("sample0_groupA", 0.1459154), - ("sample7_groupB", -0.1822545), + ("sample0_groupA", 0.145915), + ("sample7_groupB", -0.182254), ): si = np.where(adata.obs_names == sample)[0][0] - assert adata.obsm["X_mofa"][si, 0] == pytest.approx(value) + assert adata.obsm["X_mofa"][si, 0] == pytest.approx(value, 1e-5) if __name__ == "__main__":