Skip to content

Commit

Permalink
Merge pull request #311 from NNPDF/fix-coupling-eq
Browse files Browse the repository at this point in the history
Update coupling_constants.py
  • Loading branch information
felixhekhorn authored Nov 15, 2024
2 parents fc9006b + a0f56b4 commit 9f645ad
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 9f645ad

Please sign in to comment.