From b560fa7d8f01772d686b4ac74b6f599220523117 Mon Sep 17 00:00:00 2001 From: Ahmed-Bayoumy Date: Sun, 21 Apr 2024 23:07:32 -0400 Subject: [PATCH] relax variables type check --- src/DMDO/variables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DMDO/variables.py b/src/DMDO/variables.py index e52bbc3..f4d57ab 100644 --- a/src/DMDO/variables.py +++ b/src/DMDO/variables.py @@ -91,7 +91,7 @@ def __truediv__(self, other): return np.divide(self.value, other) def __update__(self, other): - if type(other)!=variableData and type(self.value) != type(other): + if type(other)!=variableData: raise IOError(f'The variables data dunder equality method of {self.name} expects a variable data object as an input or variable values with the same type of {self.name}!') if isinstance(other, variableData): self = copy.deepcopy(other)