PyPGLib: A Python Package for Easy Access to Power Grid Lib Benchmark
Project description
PyPGLib
PyPGLib: A Python Package for Easy Access to Power Grid Lib Benchmark
Current Version: v0.0.2 (1 October 2024)
Original Repository | Version in This Package |
---|---|
pglib-opf | v23.07 |
pglib-uc | v19.08 |
pglib-opf-hvdc | v23.09 |
Installation
pip install pypglib
Usage
Combined with matpower-pip
:
from matpower import start_instance
from pypglib import pglib_opf_case14_ieee
m = start_instance()
m.runpf(pglib_opf_case14_ieee)
To loop to all test files:
import glob
import os
from pypglib import PATH_PYPGLIB
opf_dir = os.path.join(PATH_PYPGLIB, "opf")
for file_path in glob.glob(os.path.join(opf_dir, "**", "*.m"), recursive=True):
print(file_path)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pypglib-0.0.3.tar.gz
(50.9 MB
view details)
Built Distribution
pypglib-0.0.3-py3-none-any.whl
(53.1 MB
view details)
File details
Details for the file pypglib-0.0.3.tar.gz
.
File metadata
- Download URL: pypglib-0.0.3.tar.gz
- Upload date:
- Size: 50.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3420480b5b055e05798dbebbc29624f552174537614812d407f6f891f48dee0d |
|
MD5 | d437336f9e5cc8386324a873a8f439b8 |
|
BLAKE2b-256 | feb545e9f4f932accec3e07861b69a368fed39671554738d755621528e3e9522 |
File details
Details for the file pypglib-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pypglib-0.0.3-py3-none-any.whl
- Upload date:
- Size: 53.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35965b77b6c2d93a63497ad3f88b7fc3ec687efc2ebf33680433f3a7cb57d1d8 |
|
MD5 | 44640d550db52d53cd14143792465ca3 |
|
BLAKE2b-256 | cc59c4c39180a78308751056fe02c8d4160e25c82255b514ef2e90e838b10150 |