TomographicImaging / CILViewer

A simple Viewer for 3D data built with VTK
Apache License 2.0
8 stars 6 forks source link

Standalone viewer: 'raw_dialog' referenced before assignment #382

Open DanicaSTFC opened 2 months ago

DanicaSTFC commented 2 months ago

When I upload a raw image correctly, I then try to uplaod another raw image (or the same again) and I get the following error

Traceback (most recent call last):
  File "...cilviewer\lib\site-packages\ccpi\viewer\standalone_viewer.py", line 52, in <lambda>
    image1_action.triggered.connect(lambda: self.setViewersInputFromDialog(self.viewers))
  File "...cilviewer\lib\site-packages\ccpi\viewer\ui\main_windows.py", line 260, in setViewersInputFromDialog
    image_file = self.selectImage()
  File "...cilviewer\lib\site-packages\ccpi\viewer\ui\main_windows.py", line 187, in selectImage
    raw_dialog.exec()
UnboundLocalError: local variable 'raw_dialog' referenced before assignment