InputsPythonGenerator#

class ansys.dpf.core.operators.utility.python_generator.InputsPythonGenerator(op: ansys.dpf.core.dpf_operator.Operator)#

Bases: ansys.dpf.core.inputs._Inputs

Intermediate class used to connect user inputs to python_generator operator.

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.python_generator()
>>> my_dll_source_path = str()
>>> op.inputs.dll_source_path.connect(my_dll_source_path)
>>> my_output_path = str()
>>> op.inputs.output_path.connect(my_output_path)
>>> my_load_symbol = str()
>>> op.inputs.load_symbol.connect(my_load_symbol)
>>> my_library_key = str()
>>> op.inputs.library_key.connect(my_library_key)

Overview#

connect

Connect any input (an entity or an operator output) to any input pin of this operator.

dll_source_path

Allows to connect dll_source_path input to the operator.

output_path

Allows to connect output_path input to the operator.

load_symbol

Allows to connect load_symbol input to the operator.

library_key

Allows to connect library_key input to the operator.

Import detail#

from ansys.dpf.core.operators.utility.python_generator import InputsPythonGenerator

Property detail#

property InputsPythonGenerator.dll_source_path: ansys.dpf.core.inputs.Input[str]#

Allows to connect dll_source_path input to the operator.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.python_generator()
>>> op.inputs.dll_source_path.connect(my_dll_source_path)
>>> # or
>>> op.inputs.dll_source_path(my_dll_source_path)
property InputsPythonGenerator.output_path: ansys.dpf.core.inputs.Input[str]#

Allows to connect output_path input to the operator.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.python_generator()
>>> op.inputs.output_path.connect(my_output_path)
>>> # or
>>> op.inputs.output_path(my_output_path)
property InputsPythonGenerator.load_symbol: ansys.dpf.core.inputs.Input[str]#

Allows to connect load_symbol input to the operator.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.python_generator()
>>> op.inputs.load_symbol.connect(my_load_symbol)
>>> # or
>>> op.inputs.load_symbol(my_load_symbol)
property InputsPythonGenerator.library_key: ansys.dpf.core.inputs.Input[str]#

Allows to connect library_key input to the operator.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.python_generator()
>>> op.inputs.library_key.connect(my_library_key)
>>> # or
>>> op.inputs.library_key(my_library_key)

Method detail#

InputsPythonGenerator.__str__()#
InputsPythonGenerator.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.

InputsPythonGenerator.__call__(inpt)#
InputsPythonGenerator.__getitem__(item) → Input#