Skip to content

Commit

Permalink
Merge branch 'fix-error-extent-array_length' of github.com:Tomographi…
Browse files Browse the repository at this point in the history
…cImaging/CILViewer into fix-error-extent-array_length
  • Loading branch information
DanicaSTFC committed Sep 10, 2024
2 parents ce5c672 + 43abbb0 commit 254dbdf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions Wrappers/Python/ccpi/viewer/ui/main_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import ccpi.viewer.viewerLinker as vlink
import vtk

vtk.vtkObject.GlobalWarningDisplayOn()
vtk.vtkOutputWindow.GetInstance().SetGlobalWarningDisplay(True)
from ccpi.viewer import CILViewer2D, CILViewer
Expand Down
10 changes: 8 additions & 2 deletions Wrappers/Python/examples/TwoLinkedViewersCentralWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ def __init__(self, parent=None):
QtWidgets.QMainWindow.__init__(self, parent)
#self.resize(800,600)

self.frame1 = QCILViewerWidget(parent, viewer=viewer2D, shape=(600, 600), interactorStyle=vlink.Linked2DInteractorStyle)
self.frame2 = QCILViewerWidget(parent, viewer=viewer3D, shape=(600, 600), interactorStyle=vlink.Linked3DInteractorStyle)
self.frame1 = QCILViewerWidget(parent,
viewer=viewer2D,
shape=(600, 600),
interactorStyle=vlink.Linked2DInteractorStyle)
self.frame2 = QCILViewerWidget(parent,
viewer=viewer3D,
shape=(600, 600),
interactorStyle=vlink.Linked3DInteractorStyle)

head = example_data.HEAD.get()

Expand Down
1 change: 1 addition & 0 deletions Wrappers/Python/examples/image_reader_and_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from ccpi.viewer.iviewer import iviewer
import numpy as np
import vtk

vtk.vtkObject.GlobalWarningDisplayOn()
vtk.vtkOutputWindow.GetInstance().SetGlobalWarningDisplay(True)

Expand Down

0 comments on commit 254dbdf

Please sign in to comment.