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.

Four deliverables

Deliverable Canonical entry
Dataset PT60 v2.1.0-rc2 download, including source attribution, manifest and file hashes
Python package pt60-tools 0.4.0; 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. PyPI publication is pending account credentials; the installable wheel below is available now.

Install and load

Use Python 3.13 in a virtual environment. Until PyPI publication:

python -m pip install https://grid.jczw.xyz/downloads/pt60_tools-0.4.0-py3-none-any.whl
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] @ https://grid.jczw.xyz/downloads/pt60_tools-0.4.0-py3-none-any.whl"
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 DATA_LICENSE.md and the dataset's attribution files.

Release files for pt60-tools 0.4.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 pt60-tools 0.4.0
File Size Uploaded
pt60_tools-0.4.0.tar.gz 22.2 kB Details

Built distribution (wheel)

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

Total release size: 42.7 kB

Release files / pt60_tools-0.4.0.tar.gz

Download URL pt60_tools-0.4.0.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2c8862a705974bebf5a59bb756972e5591d1c4a49dcf2bee06dabc1e965632bb
BLAKE2b-256 checksum
How to use checksums
f9f70a0eeeb88d34821f42d9f7171929d9eb600d4db0c501f759466f2e9d4186
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.0-py3-none-any.whl

Download URL pt60_tools-0.4.0-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97d2aef962b43543f7177735e48f60f074f336a6a70650c8945ce444a32186e6
BLAKE2b-256 checksum
How to use checksums
8a7f872dd35c56bccf805f42f39b7fbd57bcc2db525072214e2f5a982d78fc88
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

0.4.2

2 release files

0.4.1

2 release files

This release

0.4.0 This release

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