From 93229bc30d122e9b1dc65273c31283e61bd4e87f Mon Sep 17 00:00:00 2001 From: Florian Frantzen Date: Thu, 27 Jun 2024 12:43:38 +0200 Subject: [PATCH] Fix tests for scipy 1.14 --- test/classes/test_simplicial_complex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/classes/test_simplicial_complex.py b/test/classes/test_simplicial_complex.py index 57c0c5cb..4c124074 100644 --- a/test/classes/test_simplicial_complex.py +++ b/test/classes/test_simplicial_complex.py @@ -437,7 +437,7 @@ def test_hodge_laplacian_matrix_rank_2(self): column, L_hodge = SC.hodge_laplacian_matrix(rank=2, signed=False, index=True) expected_col = {(1, 2, 3): 0, (2, 3, 4): 1} assert column == expected_col - np.testing.assert_array_equal(L_hodge.A, np.array([[3, 1], [1, 3]])) + np.testing.assert_array_equal(L_hodge.toarray(), np.array([[3, 1], [1, 3]])) def test_hodge_laplacian_matrix_rank_1(self): """Test unsigned hodge_laplacian_matrix method with index for different ranks.""" @@ -453,7 +453,7 @@ def test_hodge_laplacian_matrix_rank_1(self): } assert column == expected_col np.testing.assert_array_equal( - L_hodge.A, + L_hodge.toarray(), np.array( [ [2.0, 1.0, 1.0, 0.0, 0.0, 0.0],