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
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
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. 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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| enerdatasynth-0.8.3.tar.gz | 13.7 MB | With provenance | Details for enerdatasynth-0.8.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| enerdatasynth-0.8.3-py3-none-any.whl | Python 3 | none | any | Details for enerdatasynth-0.8.3-py3-none-any.whl |
Total release size: 27.4 MB
Release files / enerdatasynth-0.8.3.tar.gz
| Download URL | enerdatasynth-0.8.3.tar.gz |
|---|---|
| Size | 13.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa00cbbfd70588706b36d2ab44d6e1cbc7f0f7adede7e682255730e59e363749
|
|
BLAKE2b-256 checksum How to use checksums |
c88daaf9c7a33722e75456de0133ff6b70921b0e18a7a7d1170de2599591d03e
|
| 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 22, 2026.
Transparency logRelease files / enerdatasynth-0.8.3-py3-none-any.whl
| Download URL | enerdatasynth-0.8.3-py3-none-any.whl |
|---|---|
| Size | 13.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15ea386acd6efd1406ec34a30da937684ba3c236b0980f11144b699130b45670
|
|
BLAKE2b-256 checksum How to use checksums |
d2b8e49989ba8ffa079b45900d6fb1b08d66407fc2a9b0860d012a48d2d2acea
|
| 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 22, 2026.
Transparency logSecurity for enerdatasynth 0.8.3
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.
Attestation for enerdatasynth-0.8.3.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 22, 2026.
Transparency logA 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.