InputsMergeDataTree#
- class ansys.dpf.core.operators.utility.merge_data_tree.InputsMergeDataTree(op: ansys.dpf.core.dpf_operator.Operator)#
Bases:
ansys.dpf.core.inputs._InputsIntermediate class used to connect user inputs to merge_data_tree operator.
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.merge_data_tree() >>> my_data_tree1 = dpf.DataTree() >>> op.inputs.data_tree1.connect(my_data_tree1) >>> my_data_tree2 = dpf.DataTree() >>> op.inputs.data_tree2.connect(my_data_tree2)
Overview#
Connect any input (an entity or an operator output) to any input pin of this operator. |
Allows to connect data_tree1 input to the operator. |
|
Allows to connect data_tree2 input to the operator. |
Import detail#
from ansys.dpf.core.operators.utility.merge_data_tree import InputsMergeDataTree
Property detail#
- property InputsMergeDataTree.data_tree1: ansys.dpf.core.inputs.Input[ansys.dpf.core.data_tree.DataTree]#
Allows to connect data_tree1 input to the operator.
Either a vector of data trees or data trees from pin 0 to … to merge.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.merge_data_tree() >>> op.inputs.data_tree1.connect(my_data_tree1) >>> # or >>> op.inputs.data_tree1(my_data_tree1)
- property InputsMergeDataTree.data_tree2: ansys.dpf.core.inputs.Input[ansys.dpf.core.data_tree.DataTree]#
Allows to connect data_tree2 input to the operator.
Either a vector of data trees or data trees from pin 0 to … to merge.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.merge_data_tree() >>> op.inputs.data_tree2.connect(my_data_tree2) >>> # or >>> op.inputs.data_tree2(my_data_tree2)
Method detail#
- InputsMergeDataTree.__str__()#
- InputsMergeDataTree.connect(inpt)#
Connect any input (an entity or an operator output) to any input pin of this operator.
Searches for the input type corresponding to the output.
Deprecated since version Deprecated: in favor of explicit output-to-input connections.
- InputsMergeDataTree.__call__(inpt)#