From e1b1ac0dcd11ea473aa256b864f51b298ffd4448 Mon Sep 17 00:00:00 2001 From: telday Date: Tue, 28 Apr 2020 14:40:23 -0400 Subject: [PATCH] Updated Dimension Class equality method --- openhtf/core/measurements.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openhtf/core/measurements.py b/openhtf/core/measurements.py index b8f449f45..b05770a60 100644 --- a/openhtf/core/measurements.py +++ b/openhtf/core/measurements.py @@ -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):