cpexport Module

This module is used to export complete CoProcessing Python scripts that can be used in a vtkCPPythonScriptPipeline.

This module uses paraview.cpstate Module to dump the ParaView session state as a an Python class description that can be then be used in the CoProcessor.

The exported script can be used in a vtkCPPythonScriptPipeline instance for CoProcessing.

paraview.cpexport.DumpCoProcessingScript(export_rendering, simulation_input_map, screenshot_info, rescale_data_range, enable_live_viz, live_viz_frequency, cinema_tracks, array_selection, filename=None)[source]

Returns a string with the generated CoProcessing script based on the options specified.

First three arguments are same as those expected by cpstate.DumpPipeline() function.

rescale_data_range :- boolean set to true if the LUTs must be scaled on
each timestep
enable_live_viz :- boolean set to true if the generated script should
handle live-visualization.
live_viz_frequency :- integer specifying how often should
the coprocessor send the live data

cinema_tracks :- cinema offline visualizer parameters array_selection :- selected value arrays for cinema filename :- if specified, the script is written to the file.

paraview.cpexport.run(filename=None)[source]

Create a dummy pipeline and save the coprocessing state in the filename specified, if any, else dumps it out on stdout.