InputsRemoveUnnecessaryLabels#
- class ansys.dpf.core.operators.utility.remove_unnecessary_labels.InputsRemoveUnnecessaryLabels(op: ansys.dpf.core.dpf_operator.Operator)#
Bases:
ansys.dpf.core.inputs._InputsIntermediate class used to connect user inputs to remove_unnecessary_labels operator.
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.remove_unnecessary_labels() >>> my_permissive = bool() >>> op.inputs.permissive.connect(my_permissive) >>> my_fields_container = dpf.FieldsContainer() >>> op.inputs.fields_container.connect(my_fields_container) >>> my_label_to_remove = str() >>> op.inputs.label_to_remove.connect(my_label_to_remove)
Overview#
Connect any input (an entity or an operator output) to any input pin of this operator. |
Allows to connect permissive input to the operator. |
|
Allows to connect fields_container input to the operator. |
|
Allows to connect label_to_remove input to the operator. |
Import detail#
from ansys.dpf.core.operators.utility.remove_unnecessary_labels import InputsRemoveUnnecessaryLabels
Property detail#
- property InputsRemoveUnnecessaryLabels.permissive: ansys.dpf.core.inputs.Input[bool]#
Allows to connect permissive input to the operator.
If true, the operator does not throw an error if the label to be removed has more than one entry.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.remove_unnecessary_labels() >>> op.inputs.permissive.connect(my_permissive) >>> # or >>> op.inputs.permissive(my_permissive)
- property InputsRemoveUnnecessaryLabels.fields_container: ansys.dpf.core.inputs.Input[ansys.dpf.core.fields_container.FieldsContainer]#
Allows to connect fields_container input to the operator.
Fields Container with the label to be removed.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.remove_unnecessary_labels() >>> op.inputs.fields_container.connect(my_fields_container) >>> # or >>> op.inputs.fields_container(my_fields_container)
- property InputsRemoveUnnecessaryLabels.label_to_remove: ansys.dpf.core.inputs.Input[str]#
Allows to connect label_to_remove input to the operator.
Label to be removed from the fields container.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.remove_unnecessary_labels() >>> op.inputs.label_to_remove.connect(my_label_to_remove) >>> # or >>> op.inputs.label_to_remove(my_label_to_remove)
Method detail#
- InputsRemoveUnnecessaryLabels.__str__()#
- InputsRemoveUnnecessaryLabels.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.
- InputsRemoveUnnecessaryLabels.__call__(inpt)#