InputsDeserializer
#
- class ansys.dpf.core.operators.serialization.deserializer.InputsDeserializer(op: ansys.dpf.core.dpf_operator.Operator)#
Bases:
ansys.dpf.core.inputs._Inputs
Intermediate class used to connect user inputs to deserializer operator.
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.serialization.deserializer() >>> my_stream_type = int() >>> op.inputs.stream_type.connect(my_stream_type) >>> my_file_path = str() >>> op.inputs.file_path.connect(my_file_path)
Overview#
Allows to connect stream_type input to the operator. |
|
Allows to connect file_path input to the operator. |
Import detail#
from ansys.dpf.core.operators.serialization.deserializer import InputsDeserializer
Property detail#
- property InputsDeserializer.stream_type#
Allows to connect stream_type input to the operator.
0 for ascii (default), and 1 for binary
- Parameters:
my_stream_type (int)
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.serialization.deserializer() >>> op.inputs.stream_type.connect(my_stream_type) >>> # or >>> op.inputs.stream_type(my_stream_type)
- property InputsDeserializer.file_path#
Allows to connect file_path input to the operator.
File path
- Parameters:
my_file_path (str)
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.serialization.deserializer() >>> op.inputs.file_path.connect(my_file_path) >>> # or >>> op.inputs.file_path(my_file_path)