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

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.3
File Size Uploaded Provenance Actions
vivarium_psimulate-1.1.3.tar.gz 104.8 kB With provenance Details for vivarium_psimulate-1.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 156.9 kB

Release files / vivarium_psimulate-1.1.3.tar.gz

Download URL vivarium_psimulate-1.1.3.tar.gz
Size 104.8 kB
Tags Source
SHA-256 checksum
How to use checksums
86bae15e9b09057cc71dbd4e4c41a5d9653a22580ea868bb5e4dab1387e5b73d
BLAKE2b-256 checksum
How to use checksums
75346fb3f352651326079afbaa15ddbb61f4533bcf1accf679f33e43200fd288
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 23, 2026.

Transparency log

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

Download URL vivarium_psimulate-1.1.3-py3-none-any.whl
Size 52.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22261ed464c14ec45d801e307d0710aeb0990b596b286df6575b910355e30f78
BLAKE2b-256 checksum
How to use checksums
48ca1bbb6be6c69fa2b78ed19246a1dfcc32bbf670b851281ed04dcd43397502
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 23, 2026.

Transparency log

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

Select from 2 files

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