From 537b411e8ef58fba614d53c143dbf2fb2eba7c81 Mon Sep 17 00:00:00 2001 From: Giulia Baldini Date: Wed, 5 Jun 2024 12:20:15 +0200 Subject: [PATCH 01/19] More specific output for test --- tests/test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test.py b/tests/test.py index c4e6ee7..243f621 100644 --- a/tests/test.py +++ b/tests/test.py @@ -76,7 +76,9 @@ def test_datasets(self) -> None: is_close = np.isclose(py_result, c_result) - assert is_close.all() + assert is_close.all(), ( + py_result.values[~is_close] - c_result.values[~is_close] + ) if __name__ == "__main__": From 4631a1d336dad1fcecbd1518fdc0c1046fa4588b Mon Sep 17 00:00:00 2001 From: Giulia Baldini Date: Wed, 5 Jun 2024 12:28:48 +0200 Subject: [PATCH 02/19] Change the order of the initializers --- bico/clustering/bico.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bico/clustering/bico.h b/bico/clustering/bico.h index 362d620..4fcf75d 100644 --- a/bico/clustering/bico.h +++ b/bico/clustering/bico.h @@ -524,22 +524,22 @@ template