Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.6 instead.

bih-power-data

Continuously refreshed dataset and monthly report for the Bosnia and Herzegovina power system (BA control area, operated by NOSBiH), collected from the ENTSO-E Transparency Platform.

Live report: report/index.html (enable GitHub Pages on this repo to serve it).

What's collected

dataset description
load_actual actual total load, hourly
load_forecast day-ahead load forecast
generation_per_type actual generation per production type (lignite, hydro ×3, wind, solar…)
generation_forecast day-ahead generation forecast
installed_capacity installed capacity per type (annual)
flow_BA_XX / flow_XX_BA cross-border physical flows with HR / RS / ME, both directions
sched_BA_XX / sched_XX_BA scheduled commercial exchanges with HR / RS / ME
day_ahead_prices, hydro_reservoir_storage attempted; BA may not report these (status noted in data/state.json)

Everything is stored as parquet in data/, full history from 2015 where available. data/state.json tracks coverage and per-dataset status.

Setup

  1. Register (free) at transparency.entsoe.eu and generate an API security token in your account settings.

  2. First full collection (locally):

    pip install -r requirements.txt
    ENTSOE_TOKEN=your-token python src/collect.py        # full history on first run (takes a while)
    python src/build_report.py                            # writes report/index.html
    
  3. Push to GitHub, then add the token so the weekly refresh works: Settings → Secrets and variables → Actions → New repository secret → name ENTSOE_TOKEN.

The included workflow (.github/workflows/refresh.yml) then re-collects incrementally every Monday 03:17 UTC and commits any new data plus a rebuilt report. You can also trigger it manually from the Actions tab (Run workflow).

Pipeline test without a token

python src/collect.py --demo && python src/build_report.py

generates synthetic data so the whole pipeline and report can be exercised end-to-end.

Graph-ready dataset

src/join_graph.py joins the ENTSO-E time series onto the ≥220 kV topology (topology/out/) and writes a graph-ready dataset into dataset/: hourly zone-level series (UTC), 51 buses with nearest_place labels and per-type plant capacities (from the curated topology/plants.csv), 67 per-circuit edges with electrical parameters, generation→bus weight vectors, and a MultiGraph GraphML. All design decisions (zone-level vs node-level signals, plant mapping coverage, cleaning rules) are documented in dataset/DESIGN.md. Runs offline from the repo checkout:

python src/join_graph.py

bihgrid — PyTorch Geometric package

The dataset ships as a PyG InMemoryDataset (auto-downloads from the GitHub release or raw files, caches locally):

pip install bihgrid
from bihgrid import BiHGrid

ds = BiHGrid(root="data/bihgrid")        # revision="v0.1.0" pins a release
data = ds[0]
data.x           # [51, 9]  voltage, coords, role, per-type plant MW
data.edge_index  # [2, 134] 67 undirected per-circuit edges, both directions
data.edge_attr   # [134, 8] r, x, b, s_nom, length_km, circuits, flags
data.zone_series # [T, 18]  hourly zone signals, UTC (NaN = gap/cleaned)
ds.zone_dataframe()                       # same as pandas DataFrame
ds.node_generation("Fossil coal (combined)")  # [T, 51] heuristic — see DESIGN.md

Feature orders: bihgrid.dataset.NODE_FEATURES / EDGE_FEATURES. Read dataset/DESIGN.md and DATASET_CARD.md before treating node-level signals as measurements — they are documented heuristics over zone-level data. Tests: python -m pytest tests/.

Releasing

git tag vX.Y.Z && git push origin vX.Y.Z → tests, GitHub release with dataset zip, PyPI publish, Zenodo DOI. One-time account setup in PUBLISHING.md.

Roadmap

  • Combine with grid topology (PyPSA-Eur / OpenStreetMap extract for BiH) into a graph-ready dataset — candidate for publication. → dataset/, src/join_graph.py
  • PyG package bihgrid (InMemoryDataset, auto-download, PyPI). → bihgrid/
  • Zenodo deposit with versioned DOI + dataset card. → .zenodo.json, DATASET_CARD.md, automated via release.yml (one-time setup in PUBLISHING.md)
  • Data paper (Scientific Data / NeurIPS D&B).
  • Companion collectors for EIA + ERCOT following the same layout.

License / attribution

Data © ENTSO-E Transparency Platform, reported by NOSBiH; reuse subject to ENTSO-E's terms. Collection and report code: MIT.

Metadata

Release files for bihgrid 0.1.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 bihgrid 0.1.1
File Size Uploaded Provenance Actions
bihgrid-0.1.1.tar.gz 7.4 kB With provenance Details for bihgrid-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 15.9 kB

Release files / bihgrid-0.1.1.tar.gz

Download URL bihgrid-0.1.1.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e35247a55350469593d8f464632f66f0b29fd72dc921bbd259771d933755637c
BLAKE2b-256 checksum
How to use checksums
08f8ebe85c2e5904376fd8105cc0bfb7d0b97ce6b5d99174799b4fe0d1ef786f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 24, 2026.

Transparency log

Release files / bihgrid-0.1.1-py3-none-any.whl

Download URL bihgrid-0.1.1-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
884524ba82a38149c0664b1dc5b4396d1b7f7dddda72f9cc485a8a57337b5049
BLAKE2b-256 checksum
How to use checksums
e67609bf7d623109463d8fd002f7012ccde8243686cc350cc44eba5e6acad1ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 24, 2026.

Transparency log

Security for bihgrid 0.1.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 bihgrid-0.1.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 Jul 24, 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