detail.python_selector Module

This module is used by vtkPythonSelector to perform query-based selections. It relies on the python-calculator (vtkPythonCalculator), specifically, the Python code used by that class, to compute a mask array from the query expression. Once the mask array is obtained, this module will mark those elements as requested.

paraview.detail.python_selector.execute(inputDO, selectionNode, insidednessArrayName, outputDO)[source]
paraview.detail.python_selector.maskarray_is_valid(maskArray)[source]

Validates that the maskArray is either a VTKArray, VTKCompositeDataArray, ndarray or a NoneArray other returns false.