Skip to content

ScanLab-ossi/covid-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No Maintenance Intended

Running locally

Use Python==3.7

Make sure to install all dependencies: pip install -r requirements.txt

Run simulation locally: python -m simulation

Run streamlit app locally: streamlit run app.py

Run dockerized

To run docker containers, make sure you have docker and docker-compose installed, running linux containers.

Run docker containers of simulation and streamlit app: docker-compose up --build [simulation/app]

Run on Google Compute Engine

ssh into the instance (currently named instance-2).

Run using python -m simulation.

Don't forget to git pull before running! Password is the Personal Access Token from https://github.com/settings/tokens.

Run in screen -S screen-name so process won't die. Rename is possible with Ctrl+A , : followed by sessionname name.

Running Tests

Make sure to install packages needed for testing: pip install black nose2[coverage_plugin] mypy

Run tests: nose2 --with-coverage

Run tests with nice HTML reports: nose2 --with-coverage --coverage-report html

Run type-checking: mypy -p simulation --ignore-missing-imports

Google Cloud

  1. Login, auth and so on.
  2. Set default region: gcloud config set run/region europe-west4
  3. Build images and deploy on Google Cloud:
docker push eu.gcr.io/temporal-dynamics/simulation:latest
gcloud run deploy simulation --image eu.gcr.io/temporal-dynamics/simulation:latest --region europe-west4 --platform managed
docker push eu.gcr.io/temporal-dynamics/app:latest
gcloud app deploy --image-url=eu.gcr.io/temporal-dynamics/app:latest

Colors and their meaning

color shorthand meaning
green g susceptible
blue b asymptomatic, or light symptoms that aren't noticed
purple p pre-symptomatic
pink v light symptoms, enough to be noticed
red r heavy, potentially life threatening sickness
white w recovered
black k deceased

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published