Skip to content

openmpp/python

Repository files navigation

OpenM++ integration with Python

This repository is a part of OpenM++ open source microsimulation platform. It contain examples how to prepare input data, run the model and process results using Python.

Please keep in mind, it is an examples only and some important details, like error handling, intentionally omitted. It is highly recommended to use try ... except in production code.

For more information visit our wiki or e-mail to: openmpp dot org at gmail dot com.

Prerequisites

Python scripts are using openM++ web-service in order to run the model, modify parameters and read output values. No installation required, just download latest release of openM++, unpack it into any directory and start oms.exe:

Windows:

cd C:\my-openmpp-release
bin\ompp_ui.bat

Linux / MacOS:

cd ~/my-openmpp-release
bin/oms

As result oms web-service will start to listen incoming requests on http://localhost:4040 and Python script will do all actions using oms web-service API.

Screenshots

NewCaseBased model: loop over MortalityHazard parameter to analyze DurationOfLife output value.

Example of NewCaseBased model run.

RiskPaths model: analyze contribution of delayed union formations versus decreased fertility on childlessness.

Example of RiskPaths model run.

License: MIT.

About

OpenM++ integration with Python

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages