Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions openhtf/core/measurements.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ def __init__(self, description='', unit=units.NO_DIMENSION):
})

def __eq__(self, other):
if not issubclass(type(other), self.__class__):
return False
return (self.description == other.description and self.unit == other.unit)

def __ne__(self, other):
Expand Down