Minimum Viable Product of Python Programmatic Model Run#1
Minimum Viable Product of Python Programmatic Model Run#1amc1999 merged 1 commit intoopenmpp:masterfrom
Conversation
… output tables as CSV/Excel format) for Python implementation.
|
Accepted, thank you.
Please see example of shutdown at https://github.com/openmpp/openmpp.github.io/wiki/Oms-API-PUT-shutdown-service or even better at It is also possible to start oms on available port instead of hard coded 4040. Scripts in models directory doing exactly that. Oms can save it own URL into file where I am thinking to add another option into oms to save
I am keeping |
The bare bones of a potential Python integration of OpenM++.
API calls and other functions are done through the Functions folder, with "Create.py" generating new information on the server-side, "Delete.py" deleting information on the server-side, "Get.py" pulling existing information on the server-side, "Load.py" pulling information about a specific model on the server-side, and "Utilities.py" providing helper functions. Note that many functions aren't complete yet.
The file "PyOpenMPP_main.py" provides a demo for how to call these functions to work with OpenM++. The file "PohemX-python.py" does the same but as a standalone file with all the functions defined inside of itself (separate since this doesn't seem like best practice to do it all from one file).
The bare bones of documentation for the new code is in the "README_2.md" file.
Please advise on whether my current code structure is okay, or if I should change how I go about developing this in the future.