This module exposes a power station dictionary that enables mapping between various naming conventions and associated plant metadata
Project description
Power Station Dictionary
This repository exposes a power station dictionary that enables mapping between various naming conventions and associated plant metadata, it also explains how you can help contribute to this open-source project.
The core output of this project is a clean output power plant dataset that includes relevant attributes such as location and capacity, as well as id mappings that can be used to connect them to other datasets. The powerdict
module will construct this dataset from the files contained in three of the data directories:
- raw - source datasets as csvs
- updates - JSON mappings from an osuked_id to a new attribute value
- definitions - JSON specification of how to process the raw sources
The output dataset can be found here
Installation
To install the powerdict
library please run:
pip install powerdict
Development Set-Up
To create a new environment you can follow the following code blocks or run the setup_env
batch script located in the batch_scripts directory.
git clone
conda env create -f environment.yml
conda activate powerdict
Publishing to PyPi
To publish the powerdict
module to PyPi simply run the following from the batch_scripts directory
pypi_publish
When prompted you should enter your PyPi username and password
After this you will be able to install the latest version of powerdict using pip install powerdict
=================================================================
To Do:
- Corrections/additions should be able to be specified through JSON alone with clear instructions of where edits can be made
- Should carry out both standard and spatial merging of datasets
- All retreival, cleaning, and merging functions should be exported to a module
- The module should include pipelines that combine the processing steps for easy dispatch
- The pipelines should be set-up with GitHub actions to run every week or so in case of new updates
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for powerdict-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8efe04ffa63bfd27b8bd28754849ca06760bf41e533e26783e07214431e1beaf |
|
MD5 | 10d6b638582de0ffdbf4dfc5352bf05e |
|
BLAKE2b-256 | 2db377f1e0beb28931d18e492d68a1201e75bdb8d7a7ff5578e7566229a1113a |