Permalink
Browse files

Merge pull request #12849 from rwcarlsen/vtk8

more vtk8 fixes for peacock
  • Loading branch information...
rwcarlsen committed Feb 6, 2019
2 parents a062c18 + 3b3d9af commit c978185d66153fcc7a7e2fdd09729a59880b8fb4
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/chigger/exodus/ExodusSource.py
@@ -106,10 +106,10 @@ def getBounds(self):
bnds = []
for i in range(self.__vtkextractblock.GetOutput().GetNumberOfBlocks()):
current = self.__vtkextractblock.GetOutput().GetBlock(i)
if isinstance(current, vtk.vtkCommonDataModelPython.vtkUnstructuredGrid):
if isinstance(current, vtk.vtkUnstructuredGrid):
bnds.append(current.GetBounds())

elif isinstance(current, vtk.vtkCommonDataModelPython.vtkMultiBlockDataSet):
elif isinstance(current, vtk.vtkMultiBlockDataSet):
for j in range(current.GetNumberOfBlocks()):
bnds.append(current.GetBlock(j).GetBounds())

@@ -135,12 +135,12 @@ def __getRange(self):
pairs = []
for i in range(self.__vtkextractblock.GetOutput().GetNumberOfBlocks()):
current = self.__vtkextractblock.GetOutput().GetBlock(i)
if isinstance(current, vtk.vtkCommonDataModelPython.vtkUnstructuredGrid):
if isinstance(current, vtk.vtkUnstructuredGrid):
array = self.__getActiveArray(current)
if array:
pairs.append(array.GetRange(component))

elif isinstance(current, vtk.vtkCommonDataModelPython.vtkMultiBlockDataSet):
elif isinstance(current, vtk.vtkMultiBlockDataSet):
for j in range(current.GetNumberOfBlocks()):
array = self.__getActiveArray(current.GetBlock(j))
if array:

0 comments on commit c978185

Please sign in to comment.