Skip to content

To create an quantitative assessment mechanism that enables the prioritisation of work to update or enhance existing COD-AB data sets. The expected output is a quality index for each COD-AB data set based on tests for features (geographical, metadata, etc).

License

Notifications You must be signed in to change notification settings

mapaction/cod-ab-data-quality

Repository files navigation

Development

We use Poetry for package management. Poetry is production tested dependency management tool with exact version locking and support for packaging and virtual environments.

Installing Poetry

curl -sSL https://install.python-poetry.org | python3 -

If necessary, add poetry location to PATH

echo 'export POETRY_HOME="$HOME/.local/bin"' >> ~/.bashrc

echo 'export PATH="$POETRY_HOME:$PATH"' >> ~/.bashrc

. ~/.bashrc

test that installation was successful

poetry --version

Installing dependencies

Before you start developing in this repository, you will need to install project dependencies and pre-commit Git hooks.

Navigate to the project directory:

cd cod-ab-data-quality

and run

make .venv hooks

or if you do not have make on your OS (i.e. Windows), you can run

# first install all dependencies
poetry install --no-root

# then install Git hooks
poetry run pre-commit install

NOTE: any new package can be added to the project by running

poetry add [package-name]

Optional dependancies

GDAL is an optional dependancy which enables file downloading through ogr2ogr, which is quicker and more memory efficient than using httpx. If not installed, httpx and geopandas with pyarrow will be used to download files.

To ensure that all commands are able to run in the cloud, it's encouraged to install Docker Desktop.

Environment file

For variables which change between runs, a dotenv file is used. Use the example file as a starting point to make a copy from.

cp .env.example .env

Running commands

Most commands can be accessed through make. In particular, make run will run all commands of this project in sequence.

Alternatively, make run can be run through the Docker command:

docker compose up --build

About

To create an quantitative assessment mechanism that enables the prioritisation of work to update or enhance existing COD-AB data sets. The expected output is a quality index for each COD-AB data set based on tests for features (geographical, metadata, etc).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published