diff --git a/dist/DMDO-2401-py3-none-any.whl b/dist/DMDO-2401-py3-none-any.whl index 970b1ac..4744604 100644 Binary files a/dist/DMDO-2401-py3-none-any.whl and b/dist/DMDO-2401-py3-none-any.whl differ diff --git a/src/DMDO/variables.py b/src/DMDO/variables.py index 4b69fd8..e52bbc3 100644 --- a/src/DMDO/variables.py +++ b/src/DMDO/variables.py @@ -91,8 +91,8 @@ def __truediv__(self, other): return np.divide(self.value, other) def __update__(self, other): - # if type(other)!=variableData and type(self.value) != type(other): - # 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 type(other)!=variableData and type(self.value) != type(other): + 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) elif isinstance(other, list) or isinstance(other, np.ndarray):