diff --git a/nifty5/field.py b/nifty5/field.py index 17a74ddcbef0753eb200bfccf28093d3f766d142..e8251d2b26e059ca940d9074719711f8a83f42bc 100644 --- a/nifty5/field.py +++ b/nifty5/field.py @@ -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)