Skip to main content

PT60

Public observations → reusable AC power-flow cases → a verifiable dataset and toolchain.

PT60 connects Portuguese public network, asset and operating records into reproducible AC power-flow cases for the 60, 130, 150, 220 and 400 kV network. The retained network contains 3,783 buses, 4,943 lines and 228 transformers. Two seasonal weeks provide 336 hourly samples of 15-minute operating intervals, with archived inputs, primary results and spatial-allocation comparisons.

Start here

Download the dataset · Read the paper and supporting material · Explore the network · Use the Python tools

Four deliverables

Deliverable Canonical entry
Dataset PT60 v2.1.0-rc2 download, including source attribution, manifest and file hashes
Python package pt60-tools on PyPI; import pt60, command pt60
Website Project and downloads, interactive map
Paper Chinese manuscript and supporting material; canonical local source: paper/PT60_SCIENTIFIC_DATA_CN_READER_FIRST_DRAFT.md

The dataset is a release candidate; permanent repository deposit and DOI are pending. The paper is a manuscript, not a published article. The Python package is published on PyPI.

Install and load

Use Python 3.13 in a virtual environment:

python -m pip install pt60-tools==0.4.2
pt60 fetch https://grid.jczw.xyz/download --output work/PT60-v2.1.0-rc2 --sha256 07727842080141300c4ddf180f82a4e7f9f66e3a444a30297d650f79a3486913
export PT60_DATA="$PWD/work/PT60-v2.1.0-rc2"
pt60 verify
pt60 info
pt60 view

The browser opens at http://127.0.0.1:8050. The local viewer works without external map services. The hosted map uses the same dataset and stable IDs.

from pt60 import Dataset

data = Dataset("work/PT60-v2.1.0-rc2")
case = data.cases("SUMMER")[0]
inputs = data.load_input(case["case_id"])
results = data.results(case["case_id"])

Build and reproduce cases

Install solver dependencies only when calculating new results:

python -m pip install "pt60-tools[solve]==0.4.2"
pt60 init --output work/my-input
# Edit the generated input files.
pt60 solve --input work/my-input --output work/my-result
pt60 replay --case PT60_2025_SUMMER_WEEK_JUL07_13_H000 --output work/replayed-case
pt60 view --result-dir work/my-result

pt60 batch --full --spatial --output work/reproduction reproduces the full seasonal experiment and its controls. Outputs must be outside the frozen release. See the usage guide for fields and API. The core installation requires NumPy, without PyTorch or GridSFM.

Development and provenance

pt60/ is the installable package; portuguese_hv_network/src/ builds the underlying network; portuguese_hv_network/site/ serves the website; paper/ contains the current manuscript and figure sources. Install from this checkout with python -m pip install -e '.[solve,test]' and run python -m pytest tests/test_pt60_tools.py.

The acquisition pipeline compiles the static network from source records. The distributed toolchain starts from that compiled network and archived observations to reproduce cases. Source roles, inferred quantities and model assumptions are retained in the dataset. Convergence demonstrates numerical consistency; it does not establish agreement with an operator state estimate.

Historical releases remain under data/releases/ for provenance. They are not alternative current downloads. Exploratory OPF and neural work is retained in experiments/opf_neural/ and output/opf/, outside the core package and paper. See the archive index for older material.

License

Source code is MIT licensed. Data retain source-specific terms, including E-REDES CC BY 4.0 and OpenStreetMap ODbL obligations. See dataset attribution and the dataset's license files.

Release files for pt60-tools 0.4.2

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

Source distribution (sdist)

Source distribution for pt60-tools 0.4.2
File Size Uploaded
pt60_tools-0.4.2.tar.gz 22.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pt60-tools 0.4.2
File Interpreter ABI Platform
pt60_tools-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 43.0 kB

Release files / pt60_tools-0.4.2.tar.gz

Download URL pt60_tools-0.4.2.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f11aed45cc1edb87a502e561dd7048b4f9035aa35401d1060a1edfab9eabe3f5
BLAKE2b-256 checksum
How to use checksums
0bb152e11b2ee317594f566aa877cf41e07b4f531e45e4a20a1a78646cdf0d6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / pt60_tools-0.4.2-py3-none-any.whl

Download URL pt60_tools-0.4.2-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfb245343b4625e316e80a48dc11013c8b0670b2b2ca8c35bc03dcb2c00e0c3e
BLAKE2b-256 checksum
How to use checksums
2225ac7804aac672e70e55f29463627e789c90deab515d3570c8bde990c58677
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

0.4.3

2 release files

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

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