Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify datasets 10: Remove StrictDataset #2402

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
10 changes: 1 addition & 9 deletions mantidimaging/core/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def set_stack(self, file_type: FILE_TYPES, image_stack: ImageStack) -> None:
if hasattr(self, attr_name):
setattr(self, attr_name, image_stack)
else:
raise AttributeError(f"StrictDataset does not have an attribute for {attr_name}")
raise AttributeError(f"Dataset does not have an attribute for {attr_name}")

def set_stack_by_type_name(self, file_type_name: str, image_stack: ImageStack) -> None:
file_type_name = file_type_name.upper().replace(" ", "_")
Expand All @@ -201,14 +201,6 @@ def is_processed(self) -> bool:
return False


class MixedDataset(Dataset):
pass


class StrictDataset(Dataset):
pass


def _get_stack_data_type(stack_id: uuid.UUID, dataset: Dataset) -> str:
"""
Find the data type as a string of a stack.
Expand Down
61 changes: 0 additions & 61 deletions mantidimaging/core/data/test/mixeddataset_test.py

This file was deleted.

293 changes: 0 additions & 293 deletions mantidimaging/core/data/test/strictdataset_test.py

This file was deleted.

Loading
Loading