Skip to content

428lab/new_coronavirus_infection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

new_coronavirus_infection

Estimation of new coronavirus infection people in Japan and China

Usage

You need install docker machine in your PC.

Setup to docker machine.

The following steps are for starting Docker.

$ docker-compose build --no-cache
$ docker-compose up -d
$ docker-compose exec covid_19_seir_model bash

Run script at next command on the docker machine console.

python estimate_new_coronavirus_infection.py [country_name]

Setup Environment

If you are a kaggle user, you can get the latest data with the API.

Copy .env.sample to .env.

$ cp .env.sample .env

Set API_NAME and API_KEY .env file.

API_NAME=[KAGGLE_USER_NAME]
API_KEY=[KAGGLE_USER_KEY]

Again, set up docker.

$ docker-compose down
$ docker-compose build --no-cache
$ docker-compose up -d
$ docker-compose exec covid_19_seir_model bash

Enter sh in the container.

$ bash update.sh
$ python estimate_new_coronavirus_infection.py [country_name]

This command output two *.png image files to current folder.

You can find the available country names by running following script.

$ python getCountryList.py

You need to add a population of the country to country.json file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published