Parse MATPOWER case into pandas DataFrame
Project description
MATPOWER Case Frames
Parse MATPOWER case into pandas DataFrame.
Unlike the tutorial on matpower-pip
, this package support parsing MATPOWER case using re
instead of Oct2Py
and Octave. After that, you can further parse the data into any format supported by you solver.
Installation
pip install matpowercaseframes
Usage
from matpowercaseframes import CaseFrames
case_path = 'case9.m'
cf = CaseFrames(case_path)
print(cf.gencost)
If you have matpower
installed via pip install matpower
(did not require matpower[octave]
), you can easily navigate MATPOWER case using:
import os
from matpower import path_matpower # require `pip install matpower`
from matpowercaseframes import CaseFrames
case_name = 'case9.m'
case_path = os.path.join(path_matpower, 'data', case_name)
cf = CaseFrames(case_path)
print(cf.gencost)
Acknowledgement
This repository was supported by the Faculty of Engineering, Universitas Gadjah Mada under the supervision of Mr. Sarjiya. If you use this package for your research, we are very glad if you cite any relevant publication under Mr. Sarjiya's name as a thanks (but you are not responsible to). You can found his publications on the semantic scholar or IEEE.
This package is a a fork and simplification from psst MATPOWER parser, thus we greatly thanks psst developers and contributors.
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
Hashes for matpowercaseframes-0.0.1a3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 329fa8828551850b35d75e5b96f32d918f8b08efc0ae01cdfb51f0a5dcb2d01f |
|
MD5 | 9f22c3af76eceeab996287dad21b20ca |
|
BLAKE2b-256 | aae6c859414b6ffc4db72cb57b7281e322a8b65b8659d636823a60f8f60a7fb6 |