Skip to main content

Welcome to laser-measles

PyPI Package latest release MIT License Documentation Status Coverage Status

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.4

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 0.9.4
File Size Uploaded Provenance Actions
laser_measles-0.9.4.tar.gz 96.9 kB With provenance Details for laser_measles-0.9.4.tar.gz

Built distribution (wheel)

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

Total release size: 239.5 kB

Release files / laser_measles-0.9.4.tar.gz

Download URL laser_measles-0.9.4.tar.gz
Size 96.9 kB
Tags Source
SHA-256 checksum
How to use checksums
431a81538f0ae00d3c332dbc80af11a3c7118bb2a5e7fe2c5ed4b8b5fa890d95
BLAKE2b-256 checksum
How to use checksums
b2abeb6f2d36a8a4f265bf01d1472dd6c94ee8587f34e6a59fc7491681de0cbd
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 27, 2026.

Transparency log

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

Download URL laser_measles-0.9.4-py3-none-any.whl
Size 142.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a318a8a8d00ef671f7d22efca0924f39bdff4f56b9d386f7708f31f12f203b77
BLAKE2b-256 checksum
How to use checksums
52a74b814868d9250eb0a64b1bcaed9b825d7a7a3922919fc257d8549ceb4651
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 27, 2026.

Transparency log

Security for laser.measles 0.9.4

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.

Select from 2 files

Attestation for laser_measles-0.9.4.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 27, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

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