Core tools for modeling using EMOD
Project description
emod-api
Python Version
Python 3.13 is the recommended and supported version.
Documentation
Documentation available at https://emod-hub.github.io/emod-api/.
To build the documentation locally, do the following:
- Create and activate a venv.
- Navigate to the root directory of the repo.
python -m pip install .[docs]
Dependencies
Linux
emod-api can use Snappy [de]compression (python-snappy) as necessary if it is installed which requires libdev-snappy (Debian/Ubuntu) or snappy-devel (RedHat/CentOS) on Linux.
Ubuntu: [sudo] apt install libdev-snappy
CentOS: [sudo] yum install snappy-devel (not yet tested)
NOTE: The python-snappy version needs to be 0.6.1. Newer versions have problems working correctly with emod-api.
User Stories
Input
- User wants to be able to create a minimal working config.json for any sim type guaranteed to work with a given Eradication binary.
- User wants to be able to create config.json from large static 'defaults' file and small variable parameters-of-interest file.
- User wants to be able to create guaranteed to work campaigns without having to interact with campaign.json files.
- User wants to create a migration file without having to grok our custom binary migration format.
- User wants to be able to create large multi-node demographics files programatically.
Output
- User wants to be able to get post-processed (cleaned up) schema.
- User wants to be able to get data from InsetChart.json without worrying about exact file format of the files.
- User wants to be able to extract data of interest from spatial binary files.
- User wants to be able to work easily with serialization files.
- User wants to be able to work easily with (pending) events.sql file.
Dev Tips
-
To build package:
python -m build --wheel -
To install package (fill in actual version number in filename):
python -m pip install dist/emod_api...whl
Capability Wishlist
- Migration files: users should never have to edit migration binary or header files.
- Serialization: Population manipulation, such as adding IPs or adding risk factors.
- Demographics: HINT matrices should not be created directly in demographics.
- Demographics: Population demographic initalization should be easier and reliable.
- Config: param_overrides and custom events.
Running tests
Please see the documentation for testing.
Community
The EMOD Community is made up of researchers and software developers, primarily focused on malaria and HIV research. We value mutual respect, openness, and a collaborative spirit. If these values resonate with you, we invite you to join our EMOD Slack Community by completing this form:
https://forms.office.com/r/sjncGvBjvZ
Disclaimer
The code in this repository was developed by IDM and other collaborators to support our joint research on flexible agent-based modeling. We've made it publicly available under the MIT License to provide others with a better understanding of our research and an opportunity to build upon it for their own work. We make no representations that the code works as intended or that we will provide support, address issues that are found, or accept pull requests. You are welcome to create your own fork and modify the code to suit your own modeling needs as permitted under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file emod_api-3.1.1.tar.gz.
File metadata
- Download URL: emod_api-3.1.1.tar.gz
- Upload date:
- Size: 141.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
202d75e5cfd264eb3c7ed62681ea3beea0fc098c4c46cfe0fba807ab75721ac1
|
|
| MD5 |
acf66da9fe85f0b567d8ce50c647485a
|
|
| BLAKE2b-256 |
b2e8c8a141e04288dd5fe5c5c72767462330a69fe9263909a053e7a3c9c249ec
|
Provenance
The following attestation bundles were made for emod_api-3.1.1.tar.gz:
Publisher:
publish_pypi.yml on EMOD-Hub/emod-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
emod_api-3.1.1.tar.gz -
Subject digest:
202d75e5cfd264eb3c7ed62681ea3beea0fc098c4c46cfe0fba807ab75721ac1 - Sigstore transparency entry: 955337046
- Sigstore integration time:
-
Permalink:
EMOD-Hub/emod-api@f64b30558b941b6bf09f16579db303ea1b4a20aa -
Branch / Tag:
refs/heads/main - Owner: https://github.com/EMOD-Hub
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi.yml@f64b30558b941b6bf09f16579db303ea1b4a20aa -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file emod_api-3.1.1-py3-none-any.whl.
File metadata
- Download URL: emod_api-3.1.1-py3-none-any.whl
- Upload date:
- Size: 119.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
099edcc2ace9c809a9c7f1c52cafd1f46d60dac514ec128cd8ab51a2c770c5fc
|
|
| MD5 |
9d2e182d1b87e31a54409caee34eb644
|
|
| BLAKE2b-256 |
9bbed6048fc0c810d3caff52892b2df7882b03a1742ae3bb66a0816e24367be1
|
Provenance
The following attestation bundles were made for emod_api-3.1.1-py3-none-any.whl:
Publisher:
publish_pypi.yml on EMOD-Hub/emod-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
emod_api-3.1.1-py3-none-any.whl -
Subject digest:
099edcc2ace9c809a9c7f1c52cafd1f46d60dac514ec128cd8ab51a2c770c5fc - Sigstore transparency entry: 955337070
- Sigstore integration time:
-
Permalink:
EMOD-Hub/emod-api@f64b30558b941b6bf09f16579db303ea1b4a20aa -
Branch / Tag:
refs/heads/main - Owner: https://github.com/EMOD-Hub
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi.yml@f64b30558b941b6bf09f16579db303ea1b4a20aa -
Trigger Event:
workflow_dispatch
-
Statement type: