OMSimulator icon indicating copy to clipboard operation
OMSimulator copied to clipboard

AttributeError: 'OMSimulator' object has no attribute 'getSubModelPath'

Open Matthias776 opened this issue 2 years ago • 1 comments

AttributeError: 'OMSimulator' object has no attribute 'getSubModelPath'

is raised when using

path, status = oms.getSubModelPath("component")

in Python

  • Version: Name: OMSimulator Version: 2.1.1.post125 Summary: OMSimulator - the FMI-based co-simulation environment for Python Home-page: http://openmodelica.org/ Author: Open Source Modelica Consortium (OSMC) Author-email: [email protected] License: BSD, OSMC-PL 1.2, GPL (user's choice) Location: c:\users\demawei2\appdata\local\programs\python\python310\lib\site-packages Requires: requests Required-by:

  • OS: Win10, 64bit

Matthias776 avatar Jun 29 '22 20:06 Matthias776

@Matthias776 The API is not exported to Python interface, This is an internal API, But can be exported to python interface

arun3688 avatar Jun 29 '22 21:06 arun3688