Skip to content

Commit

Permalink
Remove MixedDataset from StackVisualiserPresenter
Browse files Browse the repository at this point in the history
  • Loading branch information
samtygier-stfc committed Nov 15, 2024
1 parent efec58b commit 4c73db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mantidimaging/gui/windows/stack_visualiser/presenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from mantidimaging.gui.mvp_base import BasePresenter
from .model import SVModel
from ...utility.common import operation_in_progress
from mantidimaging.core.data.dataset import MixedDataset
from mantidimaging.core.data.dataset import Dataset

if TYPE_CHECKING:
from .view import StackVisualiserView # pragma: no cover
Expand Down Expand Up @@ -124,7 +124,7 @@ def dupe_stack_roi(self):
self.add_mixed_dataset_to_model_and_update_view(new_images)

def add_mixed_dataset_to_model_and_update_view(self, images: ImageStack):
dataset = MixedDataset(stacks=[images], name=images.name)
dataset = Dataset(stacks=[images], name=images.name)
self.view._main_window.presenter.model.add_dataset_to_model(dataset)
self.view._main_window.presenter.update_dataset_tree()
self.view._main_window.presenter.create_dataset_stack_visualisers(dataset)
Expand Down

0 comments on commit 4c73db8

Please sign in to comment.