예제 #1
0
 def __hash__(self):
     hash_value = _hash_numpy_array(self.distance_indexes)
     hash_value ^= hash_top(self.top)
     hash_value ^= hash(self.prefix_label)
     if hasattr(self, 'periodic'):
         hash_value ^= hash(self.periodic)
     return hash_value
예제 #2
0
    def __hash__(self):
        hash_value = _hash_numpy_array(self.angle_indexes)
        hash_value ^= hash_top(self.top)
        hash_value ^= hash(self.deg)
        hash_value ^= hash(self.cossin)

        return hash_value
예제 #3
0
    def __hash__(self):
        hash_value = hash(self.prefix_label)
        hash_value ^= hash_top(self.top)
        hash_value ^= _hash_numpy_array(self.indexes)

        return hash_value