Skip to main content

⚡ enerdatasynth

PyPI Python 3.10+ Tests: 269 passing License: MIT

PyPI: https://pypi.org/project/enerdatasynth/

enerdatasynth generates synthetic energy profiles for electric load and wind. Trained conditional models sit behind one Python interface: you describe the conditions you want (season, temperature, day type) and get a profile back.

Generators

Two resources share one interface, enerdatasynth.model(<name>, zone=...).

PJM electric load. A conditional diffusion model for 24-hour load profiles in the PJM PS zone, conditioned on month, day of week, holiday and temperature. Report: docs/models/pjm_load.md.

Wind. A conditional diffusion model for 24-hour wind profiles at 5-minute resolution, with three channel presets (1ch, 2ch, 3ch), conditioned on calendar, temperature and wind regime. Report: docs/models/wind.md.

Quick start

You need Python 3.10 or newer.

python3.11 -m venv .venv && source .venv/bin/activate   # any Python >= 3.10
pip install enerdatasynth

Save this as try_it.py and run it with python try_it.py:

import enerdatasynth

load = enerdatasynth.model("pjm_load", zone="PS")
load.set(month=7, Tmax=86, Tmin=70, weekday=True)
samples = load.sample(n=100, seed=0)
print("load:", samples.shape)            # (100, 24), MW

wind = enerdatasynth.model("wind", zone="1ch")
wind.set(wind_regime="mid", month=7, temp_min=10, temp_max=22)
samples = wind.sample(n=10, seed=0)
print("wind:", samples.shape)            # (10, 288, 2), m/s and degrees

The package ships the trained models (the PJM load Transformer and the three wind presets, about 13 MB), so this works from any folder with no clone. Don't paste the Python lines straight into your terminal prompt; the shell will try to run them as commands. Use the file above, or start python first and paste into its >>> prompt.

If pip install gives you version 0.4.1, your Python is older than 3.10. Wind sampling is slow on CPU for larger n; see docs/models/wind.md. To train your own checkpoints you need a clone of this repository and your own copy of the data; see docs/installation.md and docs/quickstart.md.

How it works

data -> conditioning -> generative model -> synthetic profile -> evaluation

Source data is cleaned and reduced to a conditioning vector (calendar plus weather). A conditional diffusion model turns pure noise into a profile that matches that vector. Load and wind each have their own pipeline, because the two problems are different enough that forcing them into one would not help. Generated profiles are scored against real ones with a metric suite (a different one per resource), and load gets a small bias correction on top. The interface is the same for both; what runs underneath is not. Details are in the architecture docs and the two model reports.

Model reports

Each resource has a full report covering the input data, conditioning, architecture, training, evaluation, results and known limitations. They are the main scientific documentation for the project, so start there if you want more than basic usage:

Documentation

Installation Quick start
API reference Architecture
Evaluation Extending (add a resource)
PJM load model report Wind model report
Model card Data card
Developer guide FAQ

The full map is in docs/README.md.

Data and reproducibility

This repository contains no real data, raw or processed. You get trained checkpoints and the generation interface, not the datasets behind them.

Resource Where the data comes from
PJM load PJM hourly metered load (hrl_load_metered) from PJM Data Miner 2
Temperature (for load conditioning) NOAA Integrated Surface Database, fetched for each zone's weather stations
Wind A separate research pipeline (wind_diffusion). Its model report says what is and isn't known about the original data source

To reproduce load preprocessing end to end, download the PJM and NOAA files yourself, put them in data/raw/pjm_load/ (the README there explains what is needed), and run enerdatasynth preprocess. Wind has no reproduction path here: the raw wind data was never part of this repository, and the wind report says so.

Citation

No paper yet. If you use this software, please cite the repository:

@software{enerdatasynth,
  title  = {enerdatasynth: A Research SDK for Synthetic PJM Energy Resource Profiles},
  author = {Sharma, Sonakshi and Tikkawar, Pranav and Mieth, Robert},
  year   = {2026},
  note   = {Software}
}

License

MIT © 2026 Sonakshi Sharma

Metadata

Release files for enerdatasynth 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for enerdatasynth 0.8.0
File Size Uploaded Provenance Actions
enerdatasynth-0.8.0.tar.gz 13.7 MB With provenance Details for enerdatasynth-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for enerdatasynth 0.8.0
File Interpreter ABI Platform Actions
enerdatasynth-0.8.0-py3-none-any.whl Python 3 none any Details for enerdatasynth-0.8.0-py3-none-any.whl

Total release size: 27.3 MB

Release files / enerdatasynth-0.8.0.tar.gz

Download URL enerdatasynth-0.8.0.tar.gz
Size 13.7 MB
Tags Source
SHA-256 checksum
How to use checksums
8a9828a8a9b7161b90350175750d7cfc2e59531eca15fe05cd29d3b7fb05d68a
BLAKE2b-256 checksum
How to use checksums
4aa4582cec2fc1979a19d5b8a7b643e6d44a97546d67f196cc62ffbdfa6a164a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / enerdatasynth-0.8.0-py3-none-any.whl

Download URL enerdatasynth-0.8.0-py3-none-any.whl
Size 13.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
76d1a2358e6fb9bd66f2ecc480c7c890aaaf21d3015d7890d78f595b47bf5552
BLAKE2b-256 checksum
How to use checksums
3ffc43ec2ef59c21bae7382f9c7cd3be12f513adff5b47c30c5512437304747a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for enerdatasynth 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for enerdatasynth-0.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page