Skip to content

Commit

Permalink
Allow country to be set using quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
greenape committed Jan 24, 2023
1 parent ee6f243 commit 4b4f449
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Added

- Quickstart script now supports arbitrary countries via `COUNTRY` env var. [#5796](https://github.com/Flowminder/FlowKit/issues/5796)

## 1.18.0

### Added
Expand Down
2 changes: 2 additions & 0 deletions docker-compose-syntheticdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
image: flowminder/flowdb-synthetic-data:${CONTAINER_TAG:-latest}
environment:
SYNTHETIC_DATA_GENERATOR: ${SYNTHETIC_DATA_GENERATOR:?Must set SYNTHETIC_DATA_GENERATOR env var}
COUNTRY: ${COUNTRY:-"NPL"}
N_SITES: ${N_SITES:?Must set N_SITES env var}
N_CELLS: ${N_CELLS:?Must set N_CELLS env var}
N_SUBSCRIBERS: ${N_SUBSCRIBERS:?Must set N_SUBSCRIBERS env var}
Expand All @@ -27,3 +28,4 @@ services:
INTERACTIONS_MULTIPLIER: ${INTERACTIONS_MULTIPLIER:?Must set INTERACTIONS_MULTIPLIER env var}
DISASTER_START: ${DISASTER_START:?Must set DISASTER_START env var}
DISASTER_END: ${DISASTER_END:?Must set DISASTER_END env var}
DISASTER_REGION_PCOD: ${DISASTER_REGION_PCOD:-"NPL.1.1_1"}
6 changes: 6 additions & 0 deletions docs/source/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ bash <(curl -s https://raw.githubusercontent.com/Flowminder/FlowKit/master/quick

to get the examples with the larger dataset (the one used when producing this documentation).

You can also explore FlowKit using synthetic data for other countries, by setting the `COUNTRY` environment variable to a three-level ISO country code, for example to simulate data for the UK with a crisis in Greater London:

```bash
COUNTRY=GBR DISASTER_REGION_PCOD=GBR.1.36_1 bash <(curl -s https://raw.githubusercontent.com/Flowminder/FlowKit/master/quick_start.sh) examples
```

!!! info
The small dataset is sufficient for most of the worked examples, but the larger dataset is required for the [Flows Above Normal](analyst/worked_examples/flows-above-normal.ipynb) example because this uses data for dates outside the range included in the small dataset.

Expand Down

0 comments on commit 4b4f449

Please sign in to comment.