Skip to content

Latest commit

 

History

History
69 lines (60 loc) · 3.85 KB

README.md

File metadata and controls

69 lines (60 loc) · 3.85 KB

population-generator

About

This project generates a population of Poland, and of some Polish cities in particular, based on Polish National Census data from 2011 and other, usually more recent, statistics provided by GUS (Statistics Poland), city councils and other data providers.

Installation

The code requires Python >= 3.7. To install dependencies execute:

pip install -r requirements.txt

Unit tests

To run unit tests, executeL

python -m unittest discover

Population generation

To generate a population run one of the following scripts:

  • src.generation.population_generator_for_cities - if you wish to generate a population of a city, currently supported are Warsaw (data subfolder name: WW) and Wrocław (data subfolder name: DW).
  • src.generation.population_generator_for_poland - if you with to generate a population of Poland

Useful links

Technical stuff:

Tracking the epidemics

Project Organization


├── LICENSE
├── Makefile           <- Makefile with commands like `make data` or `make train`
├── README.md          <- The top-level README for developers using this project.
├── data
│   ├── external       <- Data from third party sources.
│   ├── interim        <- Intermediate data that has been transformed.
│   ├── processed      <- The final, canonical data sets for modeling.
│   ├── raw            <- The original, immutable data dump.
│   └── simulations    <- The output, generated data.
│
├── docs               <- A default Sphinx project; see sphinx-doc.org for details
├── notebooks          <- Jupyter notebooks. 
├── references         <- Data dictionaries, manuals, and all other explanatory materials.
├── reports            <- Generated analysis as HTML, PDF, LaTeX, etc.
│   └── figures        <- Generated graphics and figures to be used in reporting
│
├── requirements.txt   <- The requirements file for reproducing the analysis environment, e.g.
│                         generated with `pip freeze > requirements.txt`
│
├── setup.py           <- makes project pip installable (pip install -e .) so src can be imported
├── src                <- Source code for use in this project.
│   ├── __init__.py    <- Makes src a Python module
│   ├── data           <- Scripts to describe the data
│   ├── generations    <- Scripts to generate populations
│   ├── preprocessing  <- Scripts to further process raw or processed data
│   └── validation     <- Scripts to perform sanity checks on generated population.
│
└── tox.ini            <- tox file with settings for running tox; see tox.testrun.org

Git Large File Storage

git lfs should be used to store big files. Please follow instructions to set up git-lfs on your end. Check .gitattributes for file extensions and location currently tracked with git-lfs.

If you need to track different paths, please add them using git lfs track [path-to-be-tracked]. This will append new lines to .gitattributes file. Otherwise, you can amend paths in the file by hand.