Skip to main content

laser-measles

PyPI Package latest release MIT License Documentation Status

laser-measles is a spatial epidemiological modeling toolkit that helps researchers and public health teams simulate measles transmission, evaluate vaccination strategies, and plan outbreak responses. It translates surveillance data and demographic information into projections that inform immunization planning and resource allocation — with a focus on settings where measles remains a leading cause of vaccine-preventable death.

Developed by the Institute for Disease Modeling (IDM) at the Gates Foundation, laser-measles is built on the open-source LASER framework.

Installation

pip install laser-measles

Recommended stable release: version 0.13 — the current validated and supported version:

pip install "laser-measles>=0.13,<1.0"

For development installation:

pip install -e ".[dev]"

Getting started

The recommended first example is the Quick Start Tutorial.

Model types

laser-measles provides three modeling approaches:

  • ABM (Agent-Based Model): Individual-level simulation with stochastic agents and daily timesteps. Best for detailed heterogeneity and contact structure.
  • Biweekly Compartmental Model: Population-level SIR dynamics with 2-week timesteps. Recommended for scenario building and policy analysis.
  • Compartmental Model: Population-level SEIR dynamics with daily timesteps. Recommended for parameter estimation and outbreak modeling.
from laser.measles.abm import ABMModel, ABMParams

params = ABMParams(num_ticks=365, seed=42, start_time="2000-01")
model = ABMModel(scenario, params)
model.run()

Documentation

Full documentation is available at laser.idmod.org/laser-measles.

AI-assisted code generation & ChatBot (Jenner)

jenner-measles-mcp is a Model Context Protocol (MCP) server that lets Claude and other MCP-compatible tools search the laser-measles documentation and generate model code from natural-language prompts. See InstituteforDiseaseModeling/laser-mcp for setup, supported clients, and the deployed endpoint.

Foundation employees can use JENNER-Measles-GPT here.

Contributing

Contributions are welcome. See CONTRIBUTING.md for development setup, testing, and submission guidelines.

Bug reports and feature requests can be filed on the GitHub issue tracker.

License

MIT License — Copyright (c) 2026, Gates Foundation

Metadata

Release files for laser.measles 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for laser.measles 1.0.0
File Size Uploaded
laser_measles-1.0.0.tar.gz 122.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for laser.measles 1.0.0
File Interpreter ABI Platform
laser_measles-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 304.1 kB

Release files / laser_measles-1.0.0.tar.gz

Download URL laser_measles-1.0.0.tar.gz
Size 122.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e6b78e8c1edd0af951f67612fd9fb10342d55f0f15eaf5367ca121898114275f
BLAKE2b-256 checksum
How to use checksums
42856fa4c472cd86b878f2385a3726c0dec724c0ee7742fe58ce01c4f57caf37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 8, 2026.

Transparency log

Release files / laser_measles-1.0.0-py3-none-any.whl

Download URL laser_measles-1.0.0-py3-none-any.whl
Size 181.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6719595621ef779caf3e7611f3e1ccb9b4771be575c822d8755ef0fc11a432d
BLAKE2b-256 checksum
How to use checksums
4970c8ce25ba69a87b421d48e926b5fb2a43db813483d5a3c6e5e5f8748ec0c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 8, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page