Skip to content
Snippets Groups Projects
Commit 3144d8a3 authored by Philipp Arras's avatar Philipp Arras
Browse files

Observation: introduce __hash__

parent 9cdb06d8
Branches
Tags
1 merge request!37Draft: Observation: introduce __hash__
Pipeline #144383 passed
...@@ -180,6 +180,10 @@ class BaseObservation: ...@@ -180,6 +180,10 @@ class BaseObservation:
return False return False
return compare_attributes(self, other, self._eq_attributes) return compare_attributes(self, other, self._eq_attributes)
def __hash__(self):
# Since Observations are immutable objects this is okay
return id(self)
@property @property
def antenna_names(self): def antenna_names(self):
return list(self.auxiliary_table("ANTENNA")["NAME"]) return list(self.auxiliary_table("ANTENNA")["NAME"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment