Ejemplo n.º 1
0
 def is_equal(self, other):
     from hedge.tools import field_equal
     return (self.__class__ == other.__class__
             and field_equal(other.field,  self.field)
             and field_equal(other.bfield, self.bfield)
             and other.tag == self.tag)
Ejemplo n.º 2
0
 def is_equal(self, other):
     from hedge.tools import field_equal
     return (other.__class__ == self.__class__
             and other.op == self.op
             and field_equal(other.field, self.field))