andes.io.matpower#

Simple MATPOWER format parser

Functions

m2mpc(infile)

Parse MATPOWER file and return a dictionary with the data.

mpc2system(mpc, system)

Load an mpc dict into an empty ANDES system.

read(system, file)

Read a MATPOWER data file into mpc, and build andes device elements.

system2mpc(system)

Convert data from an ANDES system to an mpc dict.

testlines(infile)

Test if this file is in the MATPOWER format.