Package pypower :: Module savecase
[hide private]
[frames] | no frames]

Module savecase

source code

Saves a PYPOWER case file.

Functions [hide private]
 
savecase(fname, ppc, comment=None, version='2')
Saves a PYPOWER case file, given a filename and the data.
source code
 
print_sparse(fd, varname, A) source code
Variables [hide private]
  __package__ = 'pypower'
Function Details [hide private]

savecase(fname, ppc, comment=None, version='2')

source code 

Saves a PYPOWER case file, given a filename and the data.

Writes a PYPOWER case file, given a filename and data dict. The fname parameter is the name of the file to be created or overwritten. Returns the filename, with extension added if necessary. The optional comment argument is either string (single line comment) or a list of strings which are inserted as comments. When using a PYPOWER case dict, if the optional version argument is '1' it will modify the data matrices to version 1 format before saving.

Authors:
Carlos E. Murillo-Sanchez (PSERC Cornell & Universidad Autonoma de Manizales), Ray Zimmerman (PSERC Cornell), Richard Lincoln