component_transformer class
Last update: 18.06.2026Namespace: Ans.DataProcessing.operators.logic
Summary
Takes the input field and creates a field with overriden value on given components.
available inputs: field (Field, FieldsContainer), component_number (Int32, IList int, System.Collections.IEnumerable), default_value (double) (optional)
available outputs: field (Field)
Example
op = component_transformer()
op = component_transformer(field=my_field,component_number=my_component_number,default_value=my_default_value)
Class Information
| Property | Value |
|---|---|
| Namespace | Ans.DataProcessing.operators.logic |
| Assembly | Ans_Dpf_Native_dll_cs |
| Base Class | Ans.DataProcessing.internal_objects.BaseOperator |
Inputs
field
Type: LinkableInput
component_number
One or several component index that will be modified from the initial field.
Type: LinkableInput
default_value
Set a default value for components selected.
Type: LinkableInput
Outputs
field
Type: LinkableOutput
Constructors
Constructor
component_transformer()
Constructor
component_transformer(field, component_number, default_value, config)
Parameters:
field(object)component_number(object)default_value(object)config(OperatorConfig)
Constructor
component_transformer(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