Skip to main content

Core tools for modeling using EMOD

Project description

Staging: emodpy

emodpy

Documentation available at https://emod-hub.github.io/emodpy/

Table of Contents

User Installation

pip install emodpy --extra-index-url=https://packages.idmod.org/api/pypi/pypi-production/simple

Pre-requisites

  • Python 3.9 x64

Development Environment Setup

When setting up your environment for the first time, you can use the following instructions

First Time Setup

  1. Clone the repository:
    > git clone https://github.com/EMOD-Hub/emodpy.git
    
  2. Create a virtualenv. On Windows, please use venv to create the environment python -m venv idmtools On Unix(Mac/Linux) you can use venv or virtualenv
  3. Activate the virtualenv
  4. If you are on windows, run pip install py-make --upgrade --force-reinstall
  5. Then run python ./.dev_scripts/bootstrap.py. This will install all the tools.

Development Tips

There is a Makefile file available for most common development tasks. Here is a list of commands

clean       -   Clean up temproary files
lint        -   Lint package and tests
test        -   Run All tests
coverage    -   Run tests and generate coverage report that is shown in browser

On Windows, you can use pymake instead of make

To run examples or tests

First, install idmtools packages including emodpy package from idm artifactory

staging artifactory with nightly build packages:

pip install idmtools[idm] --index-url=https://email:password@packages.idmod.org/api/pypi/pypi-staging/simple
OR
pip install idmtools[full] --index-url=https://email:password@packages.idmod.org/api/pypi/pypi-staging/simple

[idm] option will install all idmtools packages except idmtools_platform_local package

[full] option will install all idmtools packages including idmtools_platform_local package

email:password is your company login credentials. password should be encoded for specially characters

production artifactory with latest release packages:

pip install idmtools[idm] --extra-index-url=https://packages.idmod.org/api/pypi/pypi-production/simple
OR
pip install idmtools[full] --extra-index-url=https://packages.idmod.org/api/pypi/pypi-production/simple

To run integration tests or examples, you also need to install idmtools-test package

pip install idmtools-test --extra-index-url=https://email:password@packages.idmod.org/api/pypi/pypi-staging/simple
OR
pip install idmtools-test --extra-index-url=https://packages.idmod.org/api/pypi/pypi-production/simple

Building docs

Install all necessary documentation tools using pip install .[docs] --extra-index-url=https://packages.idmod.org/api/pypi/pypi-production/simple and run the command mkdocs build. After changing docstrings, reinstall emodpy to pick up the latest changes in the documentation build.

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

emodpy-3.0.0.tar.gz (125.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

emodpy-3.0.0-py3-none-any.whl (88.0 kB view details)

Uploaded Python 3

File details

Details for the file emodpy-3.0.0.tar.gz.

File metadata

  • Download URL: emodpy-3.0.0.tar.gz
  • Upload date:
  • Size: 125.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for emodpy-3.0.0.tar.gz
Algorithm Hash digest
SHA256 f7436c63c73ea76794c9640b1ec8fe819106a319db40c9855fd77a6b5a88e342
MD5 e4db6b53e8a5557252e1489fc32a81dd
BLAKE2b-256 75b15f3f5b917e4e794f6cc31fb81e5f5aec97b0131e7d6d1dfd89dd522d7e59

See more details on using hashes here.

Provenance

The following attestation bundles were made for emodpy-3.0.0.tar.gz:

Publisher: publish_pypi.yml on EMOD-Hub/emodpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file emodpy-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: emodpy-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 88.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for emodpy-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e4facb58e5f2926cc12f88696aa03a002dc1d76f16b0890f6449f0436ebacce
MD5 9803d9fe185efa073cff4649a4d0747a
BLAKE2b-256 87e0795fa7aa9e51d88c7b88082d080a23679197c5c5f47312c85621ffbfaea8

See more details on using hashes here.

Provenance

The following attestation bundles were made for emodpy-3.0.0-py3-none-any.whl:

Publisher: publish_pypi.yml on EMOD-Hub/emodpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page