Skip to content

Getting started

Joe Hilton edited this page Jan 6, 2022 · 1 revision

Getting started

Prerequsites

  • Python 3
  • numpy
  • scipy
  • pandas
  • xlrd (for reading Excel format)
  • tqdm

Installation

Instructions below are for UNIX-like system. A note on Windows usage is at the end.

  • Clone this repo:
git clone https://github.com/JBHilton/hh-npi-modelling
cd hh-npi-modelling
  • Install requirements e.g. with pip:
pip install -r requirements.txt
  • Run analysis in examples
export PYTHONPATH=$(pwd):$PYTHONPATH
python examples/uk/run.py

On Windows, the easiest way is to install Anaconda with a graphic installer from here.

cd <directory with the code>
set PYTHONPATH=%CD%
python examples/uk/run.py
Clone this wiki locally