Skip to main content

The Bucky model is a spatial SEIR model for simulating COVID-19 at the county level.

Project description

Bucky Model

Documentation Status black-flake8-isort-hooks CodeFactor Interrogate

Documentation

Developer Guide

The Bucky model is a spatial SEIR model for simulating COVID-19 at the county level.

Getting Started

Requirements

The Bucky model currently supports Linux and OSX and includes GPU support for accelerated modeling and processing.

  • git must be installed and in your PATH.
  • GPU support requires a cupy-compatible CUDA installation. See the CuPy docs for details.

Installation

Standard installation:

pip install bucky-covid

Choose a working directory

Bucky will produce multiple folders for historical data and outputs. It's recommended to put these in their own directory, for example ~/bucky

BUCKY_DIR=~/bucky
mkdir $BUCKY_DIR
cd $BUCKY_DIR

Configuration

The default configuration for bucky is located here. Currently, you can locally modify these options by creating a bucky.yml in BUCKY_DIR that will override any of the default options specified in it.

TODO this is WIP and does not work yet:

To use a customized configuration you first need to make a local copy of the bucky configuration. In your working directory:

bucky cfg install-local

Download Input Data

To download the required input data to the data_dir specified in the configuration files (default is $(pwd)/data:

bucky data sync

Running the Model

To run the model with default settings and produce standard outputs.

bucky run

Equivalently, one can the following command (to provide cli configuration to each part of the process)

bucky run model
bucky run postprocess
bucky viz plot

CLI options

Each bucky command has options that can be detailed with the --help flag. e.g.

$ bucky run model --help

Usage: bucky run model [OPTIONS]

  `bucky run model`, run the model itself, dumping raw monte
  carlo output to raw_output_dir.

Options:
  -d INTEGER         Number of days to project forward
                     [default: 30]
  -s INTEGER         Global PRNG seed  [default: 42]
  -n INTEGER         Number of Monte Carlo iterations  [default:
                     100]
  --runid TEXT       UUID name of current run  [default:
                     2022-06-04__08_00_03]
  --start-date TEXT  Start date for the simulation. (YYYY-MM-DD)
  --help             Show this message and exit.

Further CLI documentation is available in the documentation.

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

bucky-covid-1.0.0a0.post0.tar.gz (957.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bucky_covid-1.0.0a0.post0-py3-none-any.whl (975.2 kB view details)

Uploaded Python 3

File details

Details for the file bucky-covid-1.0.0a0.post0.tar.gz.

File metadata

  • Download URL: bucky-covid-1.0.0a0.post0.tar.gz
  • Upload date:
  • Size: 957.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.4 Linux/5.15.11-230-tkg-pds

File hashes

Hashes for bucky-covid-1.0.0a0.post0.tar.gz
Algorithm Hash digest
SHA256 4a440ef401dc2821583393d6352316a9159b22dd238a6e399deb48aeb2e74235
MD5 a7ee858bf82c8623d6214fd08c7820db
BLAKE2b-256 38694c33efd1cdfea00dc1b2addc6cc18554be7d62adad63adb317d80a9d32ce

See more details on using hashes here.

File details

Details for the file bucky_covid-1.0.0a0.post0-py3-none-any.whl.

File metadata

  • Download URL: bucky_covid-1.0.0a0.post0-py3-none-any.whl
  • Upload date:
  • Size: 975.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.4 Linux/5.15.11-230-tkg-pds

File hashes

Hashes for bucky_covid-1.0.0a0.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 a27bf9a7c8ed58bf1fd1f0f0586588b96f932578f710ad322d9499bbe9694fa6
MD5 394e5051662c11b863707f53d25e386e
BLAKE2b-256 802f8b8e2dc0aaf55320f1094264fa85bb2a06edd3ae12dd9da9623d35f7ba4b

See more details on using hashes here.

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