Welcome to laser-measles
laser-measles helps you build and analyze spatial models of measles implemented with the LASER framework.
pip install laser-measles
Getting Started
Recommended stable release: version 0.9
New users should install the v0.9 release, which is the current stable version:
pip install "laser-measles==0.9"
Version 0.9 is the recommended starting point for all new projects. Development continues on the main branch, but v0.9 is the version that has been validated and is supported for most use cases.
Our recommended first example is here: Quick Start Tutorial
AI-Powered On-Ramp: JENNER-MEASLES
The fastest way to get started with laser-measles is through JENNER-MEASLES, a chat-based AI assistant purpose-built for this framework.
JENNER-MEASLES can help you:
Understand the modeling framework and architecture
Walk through tutorials and examples interactively
Debug your model configurations and code
Explore epidemiological scenarios and parameter choices
Access requires a ChatGPT account and organization access. If you have access, this is the recommended on-ramp before diving into the documentation or source code.
MCP Server for Claude Code Users
If you use Claude Code (or any MCP-compatible AI assistant), you can connect it directly to laser-measles and laser-core documentation and source via a local MCP server.
See the laser-mcp README for setup instructions (requires organization access).
This gives Claude Code (and similar tools) deep, up-to-date context about laser-measles and laser-core — making it an excellent alternative to JENNER-MEASLES for developers who prefer working in their local environment with their own AI tooling.
What to Expect: Performance and Compute
All tutorials and examples included in this repository are designed to run in under one minute on a standard laptop or desktop computer. No special compute resources, cloud instances, or GPU hardware are required to get started.
Special compute becomes relevant only when you move to:
Calibration workflows: Fitting model parameters to data using optimization or MCMC methods
Large-scale parameter sweeps: Exploring wide parameter spaces across many simulation runs
For day-to-day exploration, scenario building, and learning the framework, your local machine is all you need.
Documentation
Full documentation is available at laser-measles.readthedocs.io.
The documentation includes:
Getting started guides and installation instructions
API reference for all model types and components
Tutorials covering the ABM, biweekly compartmental, and daily compartmental model types
Examples demonstrating spatial transmission, importation, and vaccination scenarios
Model Types
laser-measles provides three modeling approaches:
ABM (Agent-Based Model): Individual-level simulation with stochastic agents. Best for detailed heterogeneity and contact structure.
Biweekly Compartmental Model: Population-level SEIR 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.
Contributing
Contributions are welcome. Please see the documentation for development guidelines, including how to write tests, follow code style conventions, and submit pull requests.
Bug reports and feature requests can be filed on the GitHub issue tracker.
Metadata
Release files for laser.measles 0.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| laser_measles-0.9.3.tar.gz | 92.1 kB | With provenance | Details for laser_measles-0.9.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| laser_measles-0.9.3-py3-none-any.whl | Python 3 | none | any | Details for laser_measles-0.9.3-py3-none-any.whl |
Total release size: 230.0 kB
Release files / laser_measles-0.9.3.tar.gz
| Download URL | laser_measles-0.9.3.tar.gz |
|---|---|
| Size | 92.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73b2ce02a0ff9fc2876960eb318fec70137b32afb064598363cefa7dabda65b3
|
|
BLAKE2b-256 checksum How to use checksums |
2adbc5359764964b3faf5a937870f6b67e3f1822c87b86116e64da4fb48dc2fe
|
| 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 26, 2026.
Transparency logRelease files / laser_measles-0.9.3-py3-none-any.whl
| Download URL | laser_measles-0.9.3-py3-none-any.whl |
|---|---|
| Size | 137.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b32d4f5ff288acf9f83692a536a5fd522b3cc22b4955be7f2b0892631cbb005f
|
|
BLAKE2b-256 checksum How to use checksums |
e1deed4d8ac84fa547bb3ca3ab9d09aadf52ede827da25371956fee20d75d361
|
| 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 26, 2026.
Transparency logSecurity for laser.measles 0.9.3
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for laser_measles-0.9.3.tar.gz
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 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.