Пример #1
0
 def __eq__(self, other):
     if not isinstance(other, databean) or self.data != other.data:
         return False
     for k, v in self.axisData.iteritems():
         if not pymaths.equaldataset(v, other.axisData.get(k)):
             return False
     return True
Пример #2
0
 def __eq__(self, other):
     return (isinstance(other, datasetwithaxisinformation) 
             and self.axisMap == other.axisMap and pymaths.equaldataset(self.data, other.data))