Skip to content

Latest commit

 

History

History
91 lines (75 loc) · 3.37 KB

README.md

File metadata and controls

91 lines (75 loc) · 3.37 KB

Project Description:

The purpose of this project is to generate choropleths at the state and county levels of the number of COVID-19 cases in the US, similar in spirit to those found on the Wikipedia page titled "2019–20 coronavirus pandemic", along with other visualizations depicting the virus's dynamics in the US as a whole, by regions, and other areas of interest. I would also like to animate the time series data to visualize how the virus spread according to different metrics such as new cases per day and cumulative number of cases.

Sources of COVID-19 data:

Troubleshooting and Additional Resources:

Installation and Running the Scripts

Install requirements in a virtual environment

python3 --version
virtualenv env --python=python3
source env/bin/activate
pip install -r requirements.txt

Make sure you have a high enough python version (3.5 or higher). To launch the scripts, run

source env/bin/activate

once per terminal. Then, run

cd src
python3 make_fig_usa.py

for instance to run the script to generate a figure displaying the history of cases and deaths in the US.

Travis CI

Here is an explaination of the contents of the .travis.yml file. The first line states that we are building a Python project

language: python

The second details the Python versions we want to build

python:
  - 3.6

The third, details, in order, the set of pre-install commands we want to run. In particular, we should always work with the most updated version of pip

before_install:
  - python --version
  - pip install -U pip
  - pip install -U pytest
  - pip install pandas
  - pip install codecov

Next, we detail the test scripts we wish to run

script: pytest tests/*

Finally, the last line details commands to run after the test script finishes successfully. Here, we report test coverage results to codecov.io

after_success:
  - codecov 

Results: