-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
importSnapshot in Python bindings not implemented #1209
Comments
@sturmk The API is indeed available, You are using older version of OMSimulator, please update OMSimulator package if you are using pip otherwise update from github master, see the example in the testsuite https://github.com/OpenModelica/OMSimulator/blob/master/testsuite/simulation/snapshot.py |
#!/usr/bin/env python3
import OMSimulator as oms
oms.version
|
@sturmk can you post your ful python script |
@arun3688 it's not about the script. even typing |
@sturmk with the new API format i think you need to create the model or system instances and use the API, see the example here |
@arun3688 That's why I created this issue. I use it exactly like the example you mention. |
@sturmk The API is already available otherwise our testsuite will not work, The API is added in the file capi.py in OMSimulatorPython folder |
Description
Despite being contained in the documentation, "oms.importSnapshot" is not available in the Python bindings for OMSimulator.
Steps to reproduce the behavior
AttributeError: module 'OMSimulator' has no attribute 'importSnapshot'
Expected behavior
A call to the underlying C-function which executes importSnapshot should happen.
The text was updated successfully, but these errors were encountered: