Skip to content

Commit

Permalink
fix failing test due to differing numpy behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
nulinspiratie committed Dec 9, 2024
1 parent ac230f6 commit ad0e6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/data_handler/test_numpy_array_saver.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def dicts_equal(d1, d2):
if isinstance(d1[key], dict):
if not dicts_equal(d1[key], d2[key]):
return False
elif isinstance(d1[key], np.ndarray):
elif isinstance(d1[key], np.ndarray) or isinstance(d2[key], np.ndarray):
if not np.array_equal(d1[key], d2[key]):
return False
else:
Expand Down

0 comments on commit ad0e6ac

Please sign in to comment.