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.1.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.1.0
File Size Uploaded Provenance Actions
vivarium_psimulate-1.1.0.tar.gz 103.5 kB With provenance Details for vivarium_psimulate-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 155.4 kB

Release files / vivarium_psimulate-1.1.0.tar.gz

Download URL vivarium_psimulate-1.1.0.tar.gz
Size 103.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a633bfec53278e9cf975312c32749b6184085ceac62999f7e46d134374852de7
BLAKE2b-256 checksum
How to use checksums
d037e1e514ccc42130a94e1051fd2d31e1759f3d0ed2cf2493a96d32df087c6f
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 18, 2026.

Transparency log

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

Download URL vivarium_psimulate-1.1.0-py3-none-any.whl
Size 51.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1451e67644a5d86a2c1cc00c76e2c080515a493e297ab21bed88051f6371e034
BLAKE2b-256 checksum
How to use checksums
5f121594a5c503d515847f24bc02d18d03f08e3a89bdd3a293dcaaa06c83430c
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 18, 2026.

Transparency log

Security for vivarium-psimulate 1.1.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vivarium_psimulate-1.1.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 18, 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.

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