From a0f56b4c02dcf124da8e38597181c10dd4629cc5 Mon Sep 17 00:00:00 2001 From: Felix Hekhorn Date: Fri, 15 Nov 2024 15:59:08 +0200 Subject: [PATCH] Update coupling_constants.py --- src/yadism/coefficient_functions/coupling_constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yadism/coefficient_functions/coupling_constants.py b/src/yadism/coefficient_functions/coupling_constants.py index d32cb7a7..893243ad 100644 --- a/src/yadism/coefficient_functions/coupling_constants.py +++ b/src/yadism/coefficient_functions/coupling_constants.py @@ -481,7 +481,7 @@ def __repr__(self): def __eq__(self, other) -> bool: """Equal method.""" - return (self.m == other.m).all() + return np.allclose(self.m, other.m) def __getitem__(self, key): """Allow pid and strings as key.