|
@@ -49,10 +49,7 @@ class BaseAnnotations(abc.ABC):
|
|
|
@property
|
|
|
@only_with_info
|
|
|
def dataset_info(self):
|
|
|
- key = getattr(self.__class__, "name", None)
|
|
|
-
|
|
|
- if key is None:
|
|
|
- key = self.dataset_key
|
|
|
+ key = getattr(self.__class__, "name", self.dataset_key)
|
|
|
|
|
|
if key not in self.info.DATASETS:
|
|
|
raise ValueError(f"Cannot find dataset with key \"{key}\"")
|