-
Notifications
You must be signed in to change notification settings - Fork 61
Finish error handling #278
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
base: master
Are you sure you want to change the base?
Conversation
5377e62
to
47cd01b
Compare
Rebase this one and see if you can use |
@adeas31 do you have a simple way / an example to force an error? I would like to check how to evaluate the output of |
Run the following script with omc, loadString("model M Real foo = \"str\"; annotation (uses(Modelica(version=\"4.0.0\"))); end M;");
getMessagesStringInternal();
checkModel(M);
getMessagesStringInternal(); equivalent OMPython code is, from OMPython import OMCSessionZMQ
omc = OMCSessionZMQ()
omc.sendExpression("model M Real foo = \"str\"; annotation (uses(Modelica(version=\"4.0.0\"))); end M;")
omc.sendExpression("getMessagesStringInternal()")
omc.sendExpression("checkModel(M)")
omc.sendExpression("getMessagesStringInternal()") The first call to You can also see how |
8f6d05d
to
31ef902
Compare
Let me know once its ready for review. |
31ef902
to
fe5f3e3
Compare
@adeas31 all done including Please use the following order for review: PR #281, PR #282 (needs a simple conflict solution), PR #278 PR #279 is currently not updated as it would be on top of PR #278 Besides these, there are some smaller cleanups pending |
…pper for _session.sendExpression()
This reverts commit 2c3ab36.
needs the preparation / additional changes in OMCSession* and ModelicaSystem
this is handled in OMCSessionZMQ.sendExpression()
…rors for each command using sendExpression()
08d1007
to
5d9b182
Compare
Finish update of error handling in OMSession.py and ModelicaSystem.py
Based on PR #277, #273 and #270
Changes