:class:`Inputs` =============== .. py:class:: ansys.dpf.core.inputs.Inputs(dict_inputs, operator) Bases: :py:obj:`_Inputs` Intermediate class internally instantiated by the :class:`ansys.dpf.core.dpf_operator.Operator`. Used to connect inputs to the Operator by automatically checking types to connect correct inputs. .. rubric:: Examples >>> from ansys.dpf import core as dpf >>> from ansys.dpf.core import examples >>> data_src = dpf.DataSources(examples.find_msup_transient()) >>> disp_op = dpf.operators.result.displacement() >>> isinstance(disp_op.inputs, dpf.inputs._Inputs) True >>> disp_op.inputs.connect(data_src) >>> disp_op.inputs.connect([2]) .. py:currentmodule:: Inputs Overview -------- .. tab-set:: .. tab-item:: Methods .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~connect` - Connect any input (an entity or an operator output) to any input pin of this operator. .. tab-item:: Special methods .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~__str__` - * - :py:attr:`~__call__` - * - :py:attr:`~__getitem__` - Import detail ------------- .. code-block:: python from ansys.dpf.core.inputs import Inputs Method detail ------------- .. py:method:: __str__() .. py:method:: 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:: Deprecated in favor of explicit output-to-input connections. :param inpt: :type inpt: str, int, double, bool, list[int], list[float], Field, FieldsContainer, Scoping, Enum, :param ScopingsContainer: Input of the operator. :type ScopingsContainer: E501 :param MeshedRegion: Input of the operator. :type MeshedRegion: E501 :param MeshesContainer: Input of the operator. :type MeshesContainer: E501 :param DataSources: Input of the operator. :type DataSources: E501 :param CyclicSupport: Input of the operator. :type CyclicSupport: E501 :param Outputs: Input of the operator. :type Outputs: E501 :param os.PathLike # noqa: Input of the operator. :type os.PathLike # noqa: E501 .. py:method:: __call__(inpt) .. py:method:: __getitem__(item) -> Input