paraview
Package¶The paraview package provides modules used to script ParaView. Generally, users should import the modules of interest directly e.g.:
from paraview.simple import *
However, one may want to import paraview package before importing any of the ParaView modules to force backwards compatibility to an older version:
# To run scripts written for ParaView 4.0 in newer versions, you can use the
# following.
import paraview
paraview.compatibility.major = 4
paraview.compatibility.minor = 0
# Now, import the modules of interest.
from paraview.simple import *
paraview.__init__.
compatibility
[source]¶Class used to check version number and compatibility. Users should only set the compatibility explicitly to force backwards compatibility to and older versions.
major
= None¶minor
= None¶paraview.__init__.
options
[source]¶Values set here have any effect, only when importing the paraview module in python interpretor directly i.e. not through pvpython or pvbatch. In that case, one should use command line arguments for the two executables
batch
= False¶When True, acts like pvbatch –symmetric. Requires that batch is set to True to have any effect.
symmetric
= False¶