Commit 64549570 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Kitware Robot

Merge topic 'fix-18458' into release

60000b20 fix typos in util/ (fixe #18458)
Acked-by: Kitware Robot's avatarKitware Robot <>
Acked-by: Shawn Waldon's avatarShawn Waldon <>
Merge-request: !2766
parents 510db435 60000b20
Pipeline #118341 failed with stage
in 0 seconds
......@@ -13,10 +13,10 @@ def SetOutputWholeExtent(algorithm, extent):
# The output will be of dimensions 10, 1, 1
paraview.util.SetOutputWholeExtent(algorithm, (0, 9, 0, 0, 0, 0)
from vtkmodule import vtkCommonExecutionModel
if len(extent) != 6:
raise "Expected a sequence of length 6"
algorithm.GetExecutive().GetOutputInformation(0).Set(vtk.vtkStreamingDemandDrivenPipeline.WHOLE_EXTENT(), extent[0], extent[1], extent[2],extent[3], extent[4], extent[5])
from vtkmodules.vtkCommonExecutionModel import vtkStreamingDemandDrivenPipeline
algorithm.GetExecutive().GetOutputInformation(0).Set(vtkStreamingDemandDrivenPipeline.WHOLE_EXTENT(), extent[0], extent[1], extent[2],extent[3], extent[4], extent[5])
def IntegrateCell(dataset, cellId):
......@@ -26,5 +26,5 @@ def IntegrateCell(dataset, cellId):
polygons, quads and tetrahedra. All other 3D cells are triangulated
during volume calculation. In such cases, the result may not be exact.
from paraview.vtk.vtkPVVTKExtensionsDefault import vtkCellIntegrator
from vtkmodules.vtkPVVTKExtensionsDefault import vtkCellIntegrator
return vtkCellIntegrator.Integrate(dataset, cellId)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment