diff --git a/python/lib/core/dmod/core/dataset.py b/python/lib/core/dmod/core/dataset.py index 5a4368b94..c27ca1dbe 100644 --- a/python/lib/core/dmod/core/dataset.py +++ b/python/lib/core/dmod/core/dataset.py @@ -177,6 +177,18 @@ def __init__(self, manager: DatasetManager = None, **kwargs): raise ValueError(f"Expected UUID got {type(manager.uuid)}") self.manager_uuid = manager.uuid + def __eq__(self, other): + return ( + isinstance(other, Dataset) + and self.access_location == other.access_location + and self.category == other.category + and self.created_on == other.created_on + and self.data_domain == other.data_domain + and self.dataset_type == other.dataset_type + and self.is_read_only == other.is_read_only + and self.name == other.name + ) + @property def manager(self) -> Optional[DatasetManager]: return self._manager