Skip to main content

Opensynth is a library forsynthetic energy demand generation.

Project description

OpenSynth

OpenSynth Model Repository.

For the data repository:

Link to CNZ's Synthetic Dataset on Zenodo here

The data repository is still under construction. In the mean time, Centre for Net Zero has published a Faraday's output on Zenodo. This dataset contains 10 million synthetic load profiles of trained on over 300M smart meter readings from 20K Octopus Energy UK households sampled between 2021 and 2022, and is conditioned on labels such as the:

  • Property types: house, flat, terraced, detached, semi-detached etc
  • Energy performance certificate (EPC) rating: A/B/C, D/E, F/G etc
  • Low Carbon Technology (LCT) ownership: heat pumps, electric vehicles, solar PVs etc
  • Seasonality: days of the week and month of the year

You can find the dataset here on Zenodo. For more information about Faraday, please refer to the workshop paper that Centre for Net Zero presented at ICLR 2024. For more news and updates on OpenSynth, please subscribe to our mailing list here.

💻 Development Set up

To set up environment for local development, you will need to set up PyEnv and Pipenv:

  • PyEnv for Python versioning.
  • Pipenv for dependency management.

Then clone this repo and run make setup. This will set up all dependencies and precommit hooks.

Precommit Tools:

Available CLI apps:

  • pipenv run python app/app.py for a list of Typer app commands
  • get-lcl-data: Downloads, Split, Preprocesses LCL dataset.

💽 Downloading Low Carbon London dataset [1]

  • The compressed version of the data from data.london.gov.uk is ~ 700Mb. The full decompressed data is about 8Gb.
  • Note: LCL data was compressed with compression algorithm that doesn't work with Python's zipfile. You'll need to manually unzip it via command line with unzip on Linux systems, or other equivalent on Windows machine.
  • You can also download the low carbon london dataset using the typer app command pipenv run python app/app.py --download. This will use the subprocess module to unzip the file (for linux machines).
  • If you're on windows, you'll need to manually download and unzip to the folder: data/raw

ℹ️ About Low Carbon London Dataset

  • Low Carbon London dataset was from a trial conducted by UK Power Networks on a representative sample of London households from 2011 to 2014.
  • The dataset contains half-hourly smart meter readings of 5,567 households.
  • All timestamps are given in UTC so there's no time-zone conversation needed (i.e. 48 half-hourly data a day per household)

☁️ Preparing LCL Dataset for streaming

  • In order to prepare the LCL Dataset for streaming, follow the instrucitons in notebooks/streaming/streaming_data_preparation.ipynb

📕 Tutorials

For tutorials on algorithms in this repository, please refer to notebooks in the notebooks folder.

  • faraday: Train a synthetic data generative model using the Faraday algorithm
  • streaming: Train a synthetic data generative model using the Faraday algorithm by streaming the training data (useful for out of memory datasets)

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

opensynth_energy-0.0.6.tar.gz (56.9 kB view details)

Uploaded Source

Built Distribution

opensynth_energy-0.0.6-py3-none-any.whl (68.8 kB view details)

Uploaded Python 3

File details

Details for the file opensynth_energy-0.0.6.tar.gz.

File metadata

  • Download URL: opensynth_energy-0.0.6.tar.gz
  • Upload date:
  • Size: 56.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for opensynth_energy-0.0.6.tar.gz
Algorithm Hash digest
SHA256 80d2cd1525429176a171b6ff0b6f9dccf6c3d6ba87605cfdfeab1ea067d4b6c5
MD5 42ce3ae0531ea1d93165b47a89c2120a
BLAKE2b-256 e1b725e6623c19f71b01c02209b6e07f7d84c6e3c7f538a9e71e6afedbae481e

See more details on using hashes here.

File details

Details for the file opensynth_energy-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for opensynth_energy-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b564f6be6848ea2320e17fff39a2842393ac3a38effe760479d018f12aab4bf2
MD5 a5059469680a1c89fd0b301c2afad04d
BLAKE2b-256 f66656252320821c10a11832d63b20a470ee2cf0678985e06d2fad164b4431af

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page