Skip to main content

⚡ enerdatasynth

PyPI Python 3.9+ Tests: 335 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, conditioned on month, day of week, holiday and temperature. Every one of the 17 PJM zones has its own trained model (PS is the default; the rest are AE, AP, BC, CE, DAY, DEOK, DOM, DPL, DUQ, EKPC, JC, ME, PE, PL, PN, RECO). 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

pip install enerdatasynth

Then copy a whole block below into your terminal and press Enter. Each one imports the package, sets conditions, generates a day and prints its 24-hour profile.

PJM electric load (temperatures in °F):

python3 - <<'EOF'
import enerdatasynth
load = enerdatasynth.model("pjm_load", zone="PS")
load.set(month=7, Tmax=86, Tmin=70, weekday=True)
samples = load.sample(n=1, seed=0)
enerdatasynth.show(samples)
EOF

Wind (temperatures in °C; zone is the preset: "1ch" speed only, "2ch" or "3ch" speed and direction):

python3 - <<'EOF'
import enerdatasynth
wind = enerdatasynth.model("wind", zone="1ch")
wind.set(wind_regime="high", month=7, temp_min=10, temp_max=22)
samples = wind.sample(n=1, seed=0)
enerdatasynth.show(samples)
EOF

To get a different PJM zone, change zone="PS" to its code (for example zone="DOM"); everything else stays the same. You get the 24-hour profile: one row per hour, in MW for load and m/s for wind (wind is the average of each hour's twelve 5-minute values; "2ch" and "3ch" also show direction). Change the numbers in .set(...) to ask for a different day. Use n= to generate more days; show prints the first, and samples holds them all as a plain numpy array ((n, 24) for load, (n, 288, 2) for wind). The trained models ship inside the package, so this works from any folder. The first run takes about a minute while torch loads.

It works on Python 3.9 and newer. If pip install gives you version 0.4.1, your Python is older than 3.9. Wind sampling is slow on CPU for larger n; see docs/models/wind.md. Typing the same lines inside python3 works too. 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. For a zone other than PS, add --zone, for example enerdatasynth preprocess --zone DOM; examples/pjm_load/train_all_zones.py does all 17. 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.9.1

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.9.1
File Size Uploaded Provenance Actions
enerdatasynth-0.9.1.tar.gz 20.4 MB With provenance Details for enerdatasynth-0.9.1.tar.gz

Built distribution (wheel)

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

Total release size: 40.7 MB

Release files / enerdatasynth-0.9.1.tar.gz

Download URL enerdatasynth-0.9.1.tar.gz
Size 20.4 MB
Tags Source
SHA-256 checksum
How to use checksums
02063b732518f0e9dc0fcb4ab7790ab76cc35aa1e89306f0aa2bc79ff8b7b37f
BLAKE2b-256 checksum
How to use checksums
9cf94620911f7ed1340dbc119374bb9bf0f2c9a9f357844525e36ffaa733545a
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 30, 2026.

Transparency log

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

Download URL enerdatasynth-0.9.1-py3-none-any.whl
Size 20.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
fe0c2881fc95cdad357b22dcd5c2e6308af9322c23e8b57121e78e3758e9657c
BLAKE2b-256 checksum
How to use checksums
fc3332bb15aef75079d97fab5510d28e2f6b6e48801c9947e1bb225522db13b9
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 30, 2026.

Transparency log

Security for enerdatasynth 0.9.1

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.9.1.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 30, 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