Files
ThirdParty-6/ParaView-5.0.1/Applications/ParaView/Testing/Python/TestAnnotateAttributeData.py

16 lines
416 B
Python

from paraview.simple import *
s = Sphere()
e = Elevation(LowPoint=[-0.5,-0.5,-0.5],
HighPoint=[0.5, 0.5, 0.5])
UpdatePipeline()
a = AnnotateAttributeData(
Prefix="Hello: ",
ArrayName= "Elevation",
ArrayAssociation="Point Data",
ElementId=0,
ProcessId=0
)
UpdatePipeline()
assert a.GetClientSideObject().GetComputedAnnotationValue() == "Hello: 0.666667"