emodpy
idmtools-calibra
Table of Contents
User Installation
pip install idmtools-calibra
Pre-requisites
- Python 3.10, 3.11, 3.12, 3.13, 31.4 x64
Development Environment Setup
When setting up your environment for the first time, you can use the following instructions
First Time Setup
- Clone the repository:
> git clone https://github.com/InstituteforDiseaseModeling/idmtools_calibra.git
- Create a virtualenv. On Windows, please use venv to create the environment
python -m venv idmtools_calibraOn Unix(Mac/Linux) you can use venv or virtualenv - Activate the virtualenv
- 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
docs - Build mkdocs documentation
bump-patch - Bump patch version
bump-minor - Bump minor version
bump-major - Bump major version
Documentation
Documentation available at https://institutefordiseasemodeling.github.io/idmtools-calibra/.
Build mkdocs locally
Create and activate a venv. Navigate to the root directory of the repo.
cd docs
pip install -r requirments.txt
mkdocs build # build docs
mkdocs serve # view docs from http://127.0.0.1:8000/idmtools_calibra/
mkdocs gh-deploy # deploy to github (need to be on the specific branch)
Build and publish document from Github Actions
Go to Github Actions -> Run GHA job: Deploy MkDocs via GitHub Pages API
Resume Supports Parameters
CalibManager's run_calibration method supports the following parameters for resume action, for example:
run_calibration(resume=True, iteration=2, iter_step='analyze')
- resume: bool, default=False, required for resume Note: resume=True is required for resume, otherwise all the parameters will be ignored
- iteration: int, default=None, from which iteration to resume Note: in None case, calibra will detect and take the last iteration from last run
- iter_step: str, default=None, from which calibration step to resume Note: in None case, calibra will detect and take the valid step of the iteration
- loop: bool, default=True, if like to continue to next iteration Note: by default, resume will continue to run next iteration
- max_iterations, int, default=None, user can override the max_iterations defined in calib_manager Note: in None case, calibra will take max_iterations defined in calib_manager
- backup: bool, default=False, if like to backup Calibration.json Note: by default, resume will not make a backup of Calibration.json
- dry_run: bool, default=False, if like to really execute resume action Note: by default (dry_run= False), resume will go ahead to execute resume action
iter_step supports the following options:
- commission: will start to run a new iteration
- analyze: analyze the output data from given iteration
- plot: just plot for given iteration
- next_point: go directly to next iteration
Examples as Reference
The examples/ directory contains canonical usage patterns:
examples/solar/— Simplest: fits a linear model (y = mx + c) to data using OptimTool + RMSEexamples/sir/— SIR epidemiological model with multiple output configuration optionsexamples/emod_sir/— EMOD sir disease model calibrations using COMPS platform When implementing new features or debugging, the solar example (solar_optimtool_linear_model.py) is the clearest end-to-end reference.
Metadata
Release files for idmtools-calibra 3.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| idmtools_calibra-3.0.1.tar.gz | 123.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| idmtools_calibra-3.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 308.0 kB
Release files / idmtools_calibra-3.0.1.tar.gz
| Download URL | idmtools_calibra-3.0.1.tar.gz |
|---|---|
| Size | 123.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d1993de10128c13c0f08933670786caf7061619337eabb6e9b65168f708c373
|
|
BLAKE2b-256 checksum How to use checksums |
dc0438374be1d54cd9dcc714dc071d5429ea562aa162c0bfe9e39757e271eb55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 3, 2026.
Transparency logRelease files / idmtools_calibra-3.0.1-py3-none-any.whl
| Download URL | idmtools_calibra-3.0.1-py3-none-any.whl |
|---|---|
| Size | 184.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e66b179b6ceb670822a808b377b92647a3db426284b4fed7aa3c7d830ae5817
|
|
BLAKE2b-256 checksum How to use checksums |
aa1a7106545189a04efdd384763b028e60a687c03d82b9f1b44201a0e1db36f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 3, 2026.
Transparency log