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
|