Skip to content

Commit

Permalink
Add planar contour in equality
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Feb 5, 2024
1 parent dc7066e commit 43828a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/probeinterface/probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,11 @@ def __eq__(self, other):
if not np.array_equal(self.contact_annotations[key], other.contact_annotations[key]):
return False

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

return True

def copy(self):
Expand Down

0 comments on commit 43828a4

Please sign in to comment.