.Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject

Information

This example calls various functions in the Python module testFunctions.py. It tests whether arguments and return values are passed correctly. The functions in testFunctions.py are very simple in order to test whether they compute correctly, and whether the data conversion between Modelica and Python is implemented correctly. Each call to Python is followed by an assert statement which terminates the simulation if the return value is different from the expected value.

Revisions


Generated at 2025-01-08T19:40:16Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos