Commit 29b199ce authored by Philipp Arras's avatar Philipp Arras
Browse files

Cleanup

parent 03dfe083
Pipeline #31635 failed with stages
in 3 minutes and 21 seconds
......@@ -737,8 +737,6 @@ class Field(object):
return self.isEquivalentTo(other)
COUNTER = 0
for op in ["__add__", "__radd__", "__iadd__",
"__sub__", "__rsub__", "__isub__",
"__mul__", "__rmul__", "__imul__",
......@@ -754,12 +752,6 @@ for op in ["__add__", "__radd__", "__iadd__",
if isinstance(other, Field):
if other._domain != self._domain:
raise ValueError("domains are incompatible.")
if (self==0).all() or (other==0).all():
COUNTER += 1
print("({}) zero Field detected".format(COUNTER))
print("op = ", op)
# import traceback
# traceback.print_stack()
tval = getattr(self.val, op)(other.val)
return self if tval is self.val else Field(self._domain, tval)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment