Skip to main content

Spatial models of measles implemented with the LASER toolkit.

Project description

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 Bill & Melinda 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.

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

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

laser_measles-0.13.1.tar.gz (116.3 kB view details)

Uploaded Source

Built Distribution

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

laser_measles-0.13.1-py3-none-any.whl (174.5 kB view details)

Uploaded Python 3

File details

Details for the file laser_measles-0.13.1.tar.gz.

File metadata

  • Download URL: laser_measles-0.13.1.tar.gz
  • Upload date:
  • Size: 116.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for laser_measles-0.13.1.tar.gz
Algorithm Hash digest
SHA256 9b397e5cfba67a0afa7c979d0a8bf03ac01610afcd6db412a255c02a6ab13d67
MD5 3987bad82624f76ef6040328119a7a95
BLAKE2b-256 1c9a9782018c3f175dd136713b74180e39714207b7d23ecf37453e909c83ce2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for laser_measles-0.13.1.tar.gz:

Publisher: publish-pypi.yml on laser-base/laser-measles

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

File details

Details for the file laser_measles-0.13.1-py3-none-any.whl.

File metadata

  • Download URL: laser_measles-0.13.1-py3-none-any.whl
  • Upload date:
  • Size: 174.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for laser_measles-0.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 458a2a43e6d2759c62092e83fa75b6a66118c22c594b64137aee317e2bc96dfd
MD5 2ac8a5ee4dbb9a18ecb7e412ba05ed26
BLAKE2b-256 13e7352bd1273b28f974fe23e1411e4333856bf68d3fe50cf90b5d55d6626d44

See more details on using hashes here.

Provenance

The following attestation bundles were made for laser_measles-0.13.1-py3-none-any.whl:

Publisher: publish-pypi.yml on laser-base/laser-measles

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