Skip to content
Snippets Groups Projects

Add instrument simulation

Merged Jean-Baptiste Bayle requested to merge add-instrument-simulation into master
Files
2
@@ -93,6 +93,13 @@ class ForEachObject(abc.ABC):
"""Return dictionary items."""
return self.dict.items()
def __eq__(self, other):
if isinstance(other, self.__class__):
return self.dict == other.dict
if isinstance(other, dict):
return self.dict == other
return numpy.all([self[index] == other for index in self.indices()])
def __repr__(self):
return repr(self.dict)
Loading