DataTransform#
- Usage:
DataTransform Class API Wrapper
- class DataTransform[source]#
Bases:
object
Wrapper for DataTransform class of Moldflow Synergy.
- func(func_name, label_in, data_in, label_out, data_out)[source]#
This function calculates data using given function.
- Parameters:
func_name (TransformFunctions | str) – The name of the function to be applied.
label_in (IntegerArray) – The input label array.
data_in (DoubleArray) – The input data array.
label_out (IntegerArray) – The output label array.
data_out (DoubleArray) – The output data array.
- Returns:
True if the function was applied successfully, False otherwise.
- Return type:
bool
- op(label_1, data_1, op, label_2, data_2, label_out, data_out)[source]#
This function calculates data using given operation.
- Parameters:
label_1 (IntegerArray) – The first input label array.
data_1 (DoubleArray) – The first input data array.
op (TransformOperations | str) – The operation to be applied.
label_2 (IntegerArray) – The second input label array.
data_2 (DoubleArray) – The second input data array.
label_out (IntegerArray) – The output label array.
data_out (DoubleArray) – The output data array.
- Returns:
True if the operation was applied successfully, False otherwise.
- Return type:
bool
- scalar(label_in, data_in, op, scalar_value, label_out, data_out)[source]#
This function calculates data using given scalar operation.
- Parameters:
label_in (IntegerArray) – The input label array.
data_in (DoubleArray) – The input data array.
op (TransformScalarOperations | str) – The scalar operation to be applied.
scalar_value (float) – The scalar value to be used in the operation.
label_out (IntegerArray) – The output label array.
data_out (DoubleArray) – The output data array.
- Returns:
True if the scalar operation was applied successfully, False otherwise.
- Return type:
bool