Skip to content

Commit

Permalink
Modify MapAxis.__hash__
Browse files Browse the repository at this point in the history
  • Loading branch information
adonath committed Sep 19, 2019
1 parent e5b359b commit ec365a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gammapy/maps/geom.py
Expand Up @@ -390,7 +390,7 @@ def __ne__(self, other):
return not self.__eq__(other)

def __hash__(self):
return hash(self.name)
return hash((self._nodes.tostring(), self._node_type, self._name))

@property
def interp(self):
Expand Down

0 comments on commit ec365a7

Please sign in to comment.