Coder Social home page Coder Social logo

consultingmd / covid-data-public Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mahsankhan/covid-data-public

0.0 2.0 1.0 388.84 MB

Public source data used by covid-data-model and/or covid-projections

License: MIT License

Python 59.69% Shell 1.50% HTML 36.29% JavaScript 2.38% Makefile 0.13%

covid-data-public's Introduction

COVID-19 Data Sources

Repository for regularly-updated data sets used by covid-data-model. Anything that we want to re-fetch periodically should definitely live in this repo, along with scripts for automated updating.

Notes

  • We recently changed our default branch from master to main. If you have the repo checked out locally, you can update with the following:
    $ git branch --unset-upstream
    $ git branch -u origin/main
  • Use README.md files to document where data has been sourced from.
  • Data is updated twice daily (midnight and noon, UTC) by a Github Action defined here. The action runs update.sh and then push_update.sh. To trigger a manual update, see details in the workfow definition.
  • Don't check in multiple versions of the same data. We can rely on git history instead.
  • If data is being downloaded / scraped by a script, check the script in under scripts/
  • Git LFS is required to correctly checkout at least the US Census Shapefiles for now because they are very big. You have to run something like git lfs install and git lfs fetch.

Date sources for current / future use.

These are data sets that we've found that look interesting and we may want to consider pulling in the future.

SIR Data Sources

Intervention Data Sources

Hospital Capacity Data

Setup

We recommend installing all requirements in a virtualenv. To setup your virtual env, you should follow the steps here.

Once you have activated the venv run make setup-dev to install packages in it.

Setup auto-formatting

We use black to automatically format python code. One way we keep this maintainable is by using a pre-commit step that automatically reformats modified files on commit.

Trigger Data Update

To manually kick off a data update (e.g. if a previous update failed and a fix was merged), get a github personal access token, and run:

GITHUB_TOKEN=<YOUR PERSONAL GITHUB TOKEN> ./tools/trigger-data-update.sh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.