Skip to content

Commit

Permalink
Remove StrictDataset
Browse files Browse the repository at this point in the history
  • Loading branch information
samtygier-stfc committed Nov 22, 2024
1 parent 2c6238d commit 2b7887a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 298 deletions.
6 changes: 1 addition & 5 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,10 +201,6 @@ def is_processed(self) -> bool:
return False


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
293 changes: 0 additions & 293 deletions mantidimaging/core/data/test/strictdataset_test.py

This file was deleted.

0 comments on commit 2b7887a

Please sign in to comment.