ams.io.matpower#

MATPOWER parser.

Functions

m2mpc(infile)

Parse a MATPOWER file and return a dictionary containing the parsed data.

mpc2system(mpc, system)

Load an mpc dict into an empty AMS system.

read(system, file)

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

system2mpc(system)

Convert data from an AMS system to an mpc dict.

testlines(infile)

Test if this file is in the MATPOWER format.