Skip to content

Commit

Permalink
Update coupling_constants.py
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn authored Nov 15, 2024
1 parent fc9006b commit a0f56b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yadism/coefficient_functions/coupling_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a0f56b4

Please sign in to comment.