def __eq__( self, rhs ):
      if not isinstance( rhs, Data ):
         return False

      if len( self ) != len( rhs ):
         return False
      
      for key in self:
         if key not in rhs:
            return False

         if not ( self[key] == rhs[key] ):
            return False

      return True

   #-----------------------------------------------------------------------
: Equality comparison.
dataset/ETHPy150Open nasa/mplStyle/mplStyle/types/Data.py/Data.__eq__