mlfmu.utils.fmi_builder

Functions

generate_model_description(fmu_model)

Generate FMU modelDescription as XML.

requires_start(var)

Test if a variable requires a start attribute.

mlfmu.utils.fmi_builder.generate_model_description(fmu_model: FmiModel) ElementTree

Generate FMU modelDescription as XML.

Parameters:

(FmiModel) (fmu_model)

Returns:

xml.etree.TreeElement.Element

Return type:

modelDescription XML representation.

mlfmu.utils.fmi_builder.requires_start(var: FmiVariable) bool

Test if a variable requires a start attribute.

Return type:

True if successful, False otherwise