workflow_to_pydpf class
Last update: 18.06.2026Namespace: Ans.DataProcessing.operators.serialization
Summary
Generates a PyDPF script that can recreate the given workflow.
The script is returned as a string, and can optionally be saved to a specified path.
available inputs: workflow (Workflow), output_path (string) (optional)
available outputs: pydpf_code (string)
Example
op = workflow_to_pydpf()
op = workflow_to_pydpf(workflow=my_workflow,output_path=my_output_path)
Class Information
| Property | Value |
|---|---|
| Namespace | Ans.DataProcessing.operators.serialization |
| Assembly | Ans_Dpf_Native_dll_cs |
| Base Class | Ans.DataProcessing.internal_objects.BaseOperator |
Inputs
workflow
Type: LinkableInput
output_path
Type: LinkableInput
Outputs
pydpf_code
Type: LinkableOutput
Constructors
Constructor
workflow_to_pydpf()
Constructor
workflow_to_pydpf(workflow, output_path, config)
Parameters:
workflow(object)output_path(object)config(OperatorConfig)
Constructor
workflow_to_pydpf(config)
Parameters:
config(OperatorConfig)
Methods
Properties
inputs
Type: InputSpec
# Get or set the property
value = obj.inputs
obj.inputs = new_value
outputs
Type: OutputSpec
# Get or set the property
value = obj.outputs
obj.outputs = new_value
defaultConfig
Type: Config
# Get the property (read-only)
value = obj.defaultConfig