Skip to main content

No project description provided

Project description

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.

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.9.3.tar.gz (92.1 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.9.3-py3-none-any.whl (137.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for laser_measles-0.9.3.tar.gz
Algorithm Hash digest
SHA256 73b2ce02a0ff9fc2876960eb318fec70137b32afb064598363cefa7dabda65b3
MD5 ab849eadc197ce2630e1c112d1af8a0f
BLAKE2b-256 2adbc5359764964b3faf5a937870f6b67e3f1822c87b86116e64da4fb48dc2fe

See more details on using hashes here.

Provenance

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

Publisher: publish-pypi.yml on InstituteforDiseaseModeling/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.9.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for laser_measles-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b32d4f5ff288acf9f83692a536a5fd522b3cc22b4955be7f2b0892631cbb005f
MD5 adcb94e3c51d03f9a760e1d833545542
BLAKE2b-256 e1deed4d8ac84fa547bb3ca3ab9d09aadf52ede827da25371956fee20d75d361

See more details on using hashes here.

Provenance

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

Publisher: publish-pypi.yml on InstituteforDiseaseModeling/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