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

Module main

source code

Main entry-points for PYPOWER.

Functions [hide private]
 
option_callback(option, opt, value, parser, *args, **kw_args) source code
 
add_options(group, options, *callback_args, **callback_kwargs) source code
 
parse_options(args, usage, opf=False)
Parse command line options.
source code
 
exit(success) source code
 
pf(args=[]) source code
 
opf(args=[]) source code
Variables [hide private]
  TYPE_MAP = {<type 'float'>: 'float', <type 'int'>: 'int', <typ...
  AFFIRMATIVE = ('True', 'Yes', 'true', 'yes', '1', 'Y', 'y')
  NEGATIVE = ('False', 'No', 'false', 'no', '0', 'N', 'n')
  CASES = {'case4gs': case4gs, 'case6ww': case6ww, 'case9': case...
  __package__ = 'pypower'
Function Details [hide private]

parse_options(args, usage, opf=False)

source code 

Parse command line options.

Parameters:
  • opf - Include OPF options?

Variables Details [hide private]

TYPE_MAP

Value:
{<type 'float'>: 'float',
 <type 'int'>: 'int',
 <type 'bool'>: 'choice'}

CASES

Value:
{'case4gs': case4gs, 'case6ww': case6ww, 'case9': case9, 'case9Q': cas\
e9Q, 'case14': case14, 'case24_ieee_rts': case24_ieee_rts, 'case30': c\
ase30, 'case30Q': case30Q, 'case30pwl': case30pwl, 'case39': case39, '\
case57': case57, 'case118': case118, 'case300': case300, 'case30_userf\
cns': t_case30_userfcns}