mp.dm_converter_mpc2
- class mp.dm_converter_mpc2
Bases:
mp.dm_converter
mp.dm_converter_mpc2
- MATPOWER data model converter for MATPOWER case v2.This class implements importing/exporting of data models for version 2 of the classic MATPOWER case format. That is, the data source d for this class is expected to be a MATPOWER case struct.
- mp.dm_converter_mpc2 Methods:
dm_converter_mpc2()
- constructorformat_tag()
- return char array identifier for data source/format ('mpc2'
)import()
- import data from a MATPOWER case struct into a data modelexport()
- export data from a data model to a MATPOWER case structsave()
- save MATPOWER case struct to a file
See also
mp.dm_converter
.- Constructor Summary
- dm_converter_mpc2()
Specify the element classes for handling MATPOWER case format.
- Method Summary
- format_tag()
Return identifier tag
'mpc2'
for version 2 MATPOWER case format.
- import(dm, d)
Import data from a version 2 MATPOWER case struct into a data model.
- init_export(dm)
Initialize a MATPOWER case struct for export.
- save(fname, d)
Save a MATPOWER case struct to a file.