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

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.2
File Size Uploaded Provenance Actions
vivarium_psimulate-1.1.2.tar.gz 104.1 kB With provenance Details for vivarium_psimulate-1.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 156.1 kB

Release files / vivarium_psimulate-1.1.2.tar.gz

Download URL vivarium_psimulate-1.1.2.tar.gz
Size 104.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f5b1e1f27b290a2f1ddde54a55f7809b63981eebecee810463eaa9d420d799c8
BLAKE2b-256 checksum
How to use checksums
4bd5d75c5b0869890649cbb70c5cf1ef568d5e12a752c83a75a4def38b0fdc19
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 20, 2026.

Transparency log

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

Download URL vivarium_psimulate-1.1.2-py3-none-any.whl
Size 52.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f6dec9958850cb39f55c1bd284bf8a17de8075bf72841480c1f44d052255e6b
BLAKE2b-256 checksum
How to use checksums
1661285972aeb364b57205bacac22c427f5031c51d36130e63ae2ec2220611a6
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 20, 2026.

Transparency log

Security for vivarium-psimulate 1.1.2

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.2.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 20, 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