Skip to content

Commit

Permalink
Revert variables change
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed-Bayoumy committed Apr 22, 2024
1 parent c841f9e commit fad0889
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified dist/DMDO-2401-py3-none-any.whl
Binary file not shown.
4 changes: 2 additions & 2 deletions src/DMDO/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit fad0889

Please sign in to comment.