Skip to content

Commit

Permalink
use equal_nan in array comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
michalozeryflato committed Dec 29, 2022
1 parent 277ed77 commit c92aa49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepdiff/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ def _diff_numpy_array(self, level, parents_ids=frozenset(), local_tree=None):
if not self.ignore_order_func(level):
# fast checks
if self.significant_digits is None:
if np.array_equal(level.t1, level.t2):
if np.array_equal(level.t1, level.t2, equal_nan=self.ignore_nan_inequality):
return # all good
else:
try:
Expand Down

0 comments on commit c92aa49

Please sign in to comment.