mantidproject / mantidimaging

Graphical toolkit for neutron imaging.
https://mantidproject.github.io/mantidimaging
GNU General Public License v3.0
13 stars 6 forks source link

AttributeError add a new stack into a dataset #2315

Closed samtygier-stfc closed 1 month ago

samtygier-stfc commented 1 month ago

Summary

Error when adding or replacing a image stack in a dataset

Steps To Reproduce

Load a dataset Right click on dataset in left panel Add / replace stack Choose File - select an image stack to load Click ok

Expected Behaviour

Load new image stack into dataset

Current Behaviour

AttributeError: 'MainWindowModel' object has no attribute 'load_image_stack'

Context

Current main and 2.8 on IDAaaS

Failure Logs

  File "/home/sam/git/mantidimaging/mantidimaging/gui/windows/add_images_to_dataset_dialog/view.py", line 37, in _on_accepted
    self.presenter.notify(Notification.IMAGE_FILE_SELECTED)
  File "/home/sam/git/mantidimaging/mantidimaging/gui/windows/add_images_to_dataset_dialog/presenter.py", line 29, in notify
    self.load_images()
  File "/home/sam/git/mantidimaging/mantidimaging/gui/windows/add_images_to_dataset_dialog/presenter.py", line 37, in load_images
    start_async_task_view(self.view, self.view.parent_view.presenter.model.load_image_stack,
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindowModel' object has no attribute 'load_image_stack