Skip to content

Commit

Permalink
test for boolean elements (MERLIN)
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyBagnall committed Feb 3, 2025
1 parent 495d75a commit 7a00c17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aeon/testing/estimator_checking/_yield_estimator_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,8 @@ def _equal_outputs(output1, output2):
return False
if np.issubdtype(type(output1), np.floating):
return np.isclose(output1, output2)
if np.issubdtype(type(output1), np.bool_):
return output1 == output2
if isinstance(output1, np.ndarray): # 1. X an equal length collection or series
if np.isscalar(output1):
return np.allclose(output1, output2, equal_nan=True)
Expand Down

0 comments on commit 7a00c17

Please sign in to comment.