Skip to content

Commit

Permalink
Better logic for probe_planar_contour eq
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Feb 5, 2024
1 parent 43828a4 commit e002f92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/probeinterface/probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,8 @@ def __eq__(self, other):

# planar contour
if self.probe_planar_contour is not None:
if other.probe_planar_contour is None:
return False
if not np.array_equal(self.probe_planar_contour, other.probe_planar_contour):
return False

Expand Down

0 comments on commit e002f92

Please sign in to comment.