From 6b48f30819da1dfe3e7798cf33fa5b8af68bdae5 Mon Sep 17 00:00:00 2001 From: damonge Date: Sun, 6 Oct 2024 21:42:24 +0100 Subject: [PATCH] mysterious failing test --- pymaster/tests/test_utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pymaster/tests/test_utils.py b/pymaster/tests/test_utils.py index 5c39396e..f1fc2dfe 100644 --- a/pymaster/tests/test_utils.py +++ b/pymaster/tests/test_utils.py @@ -62,8 +62,11 @@ def test_moore_penrose_pinv(): # Pick up largest eigval e = e[:, w > 0.1].squeeze() # Should only have two non-zero eigvals + print(w) assert np.sum(np.fabs(w) < 1E-15) == 2 # Check e is parallel to v + print(np.dot(e, v)) + print(np.dot(e, e)) assert np.isclose(np.dot(e, v), np.sqrt(np.dot(e, e))) @@ -73,6 +76,8 @@ def test_moore_penrose_pinv(): m = np.diag(w) im = nmt.utils.moore_penrose_pinvh(m, None) imb = np.diag(1/w) + print(im) + print(imb) assert np.allclose(im, imb)