Skip to main content

Vivarium psimulate

https://badge.fury.io/py/vivarium-psimulate.svg Documentation Status

This library provides psimulate, a command that runs many vivarium simulations in parallel on a Slurm cluster, and vipin, a command that summarizes the performance logs of a psimulate run.

Supported Python versions: 3.11, 3.12, 3.13

You can install vivarium-psimulate from PyPI with pip:

pip install vivarium-psimulate

or build it from source by cloning the monorepo and installing this package:

git clone https://github.com/ihmeuw/vivarium-suite.git
cd vivarium-suite
pip install libs/psimulate

A simple example

If you have a vivarium model specification file that defines a model, you can use it with a branches file to launch many simulations at once, with variations in the input data, the random seed or the parameter settings.

psimulate run -M /path/to/model_specification.yaml -B /path/to/branches_file.yaml \
    -o /path/to/results -P proj_simscience

The simplest branches file gives a count of input data draws and random seeds to launch.

input_draw_count: 25
random_seed_count: 10

This branches file defines one simulation for each combination of 25 input draws and 10 random seeds, so it runs 250 simulations in total.

A branches file can also vary the model’s configuration. The model specification below defines a model of lower respiratory infections and a vaccine intervention.

components:
  vivarium.public_health:
    population:
      - BasePopulation()
    disease.models:
      - SIS('lower_respiratory_infections')
  my_lri_intervention:
    components:
      - GiveKidsVaccines()

configuration:
  population:
    population_size: 1000
    age_start: 0
    age_end: 5
  lri_vaccine:
    coverage: 0.2
    efficacy: 0.8

This branches file varies the vaccine’s coverage and efficacy as well as the input draws and random seeds.

input_draw_count: 25
random_seed_count: 10

branches:
  - lri_vaccine:
      coverage: [0.0, 0.2, 0.4, 0.8, 1.0]
      efficacy: [0.4, 0.6, 0.8]

Each combination of coverage and efficacy replaces the lri_vaccine configuration in the model specification, and each runs for every combination of input draw and random seed. That makes 25 * 10 * 5 * 3 = 3750 simulations.

Check out the docs!

Metadata

Release files for vivarium-psimulate 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 vivarium-psimulate 1.0.0
File Size Uploaded Provenance Actions
vivarium_psimulate-1.0.0.tar.gz 103.4 kB With provenance Details for vivarium_psimulate-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vivarium-psimulate 1.0.0
File Interpreter ABI Platform Actions
vivarium_psimulate-1.0.0-py3-none-any.whl Python 3 none any Details for vivarium_psimulate-1.0.0-py3-none-any.whl

Total release size: 155.3 kB

Release files / vivarium_psimulate-1.0.0.tar.gz

Download URL vivarium_psimulate-1.0.0.tar.gz
Size 103.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d500834397fd9dd1a6791414ead8758f391366f46f3d8aaa2b4b331b6c598898
BLAKE2b-256 checksum
How to use checksums
f0d2fcfe91f958adc1576c0b6a01a51fb07d6f32cbe81c9f19208ed0e8790cfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

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

Download URL vivarium_psimulate-1.0.0-py3-none-any.whl
Size 51.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
530486cdc25dbb7a6ce097a8ca5536788b62e63eb0982311b440e31acbbad5b2
BLAKE2b-256 checksum
How to use checksums
c42a9908fb54f10c141a57e28913ea78744dc82d4b3254d95330a2c19862cca7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Security for vivarium-psimulate 1.0.0

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vivarium_psimulate-1.0.0.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 Nov 4, 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

This release

1.0.0 This release

2 release files Full provenance

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