Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
oelbert committed Sep 5, 2024
1 parent 57f1807 commit 1bd19ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndsl/testing/comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _compute_errors(
denom = self.references
denom[self.references == 0] = self.computed[self.references == 0]
self._calculated_metric = np.asarray(
np.abs(self.computed - self.references / denom)
np.abs((self.computed - self.references) / denom)
)
self._calculated_metric[denom == 0] = 0.0
elif self.references.dtype in (np.bool_, bool):
Expand Down

0 comments on commit 1bd19ea

Please sign in to comment.