Skip to content

Commit

Permalink
Adding debug message to diagnose test failures on github servers
Browse files Browse the repository at this point in the history
  • Loading branch information
elinscott committed Sep 12, 2024
1 parent a88c8af commit 6bfaa1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/koopmans/processes/_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def __eq__(self, other):
if isinstance(cond, np.ndarray):
cond = cond.all()
if not cond:
raise ValueError(f'Debug: {key} differs: {getattr(self, key)} != {getattr(other, key)}')
return False
return True

Expand Down

0 comments on commit 6bfaa1c

Please sign in to comment.