ospx.fmi.variable

Functions

get_fmi_data_type(arg)

Return the fmi 2.0 data type corresponding to Python type of the passed in argument.

Classes

ScalarVariable(name[, data_type, causality, ...])

fmi 2.0 ScalarVariable.

ospx.fmi.variable.get_fmi_data_type(arg: object) str

Return the fmi 2.0 data type corresponding to Python type of the passed in argument.

See https://github.com/modelica/fmi-standard/blob/v2.0.x/schema/fmi2Type.xsd

Parameters:

arg (Any) – The argument for which the fmi 2.0 data type shall be determined

Returns:

The fmi 2.0 data type, returned as string literal.n valid fmi 2.0 data types are ‘Integer’, ‘Real’, ‘Boolean’, ‘String’ and ‘Enumeration’

Return type:

str