Skip to content

Commit

Permalink
relax variables type check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed-Bayoumy committed Apr 22, 2024
1 parent 408f644 commit b560fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DMDO/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b560fa7

Please sign in to comment.