Package PyDSTool
[hide private]
[frames] | no frames]

Package PyDSTool

source code

PyDSTool initialization script.

Copyright (C) 2007-2012 Georgia State University

print PyDSTool.__LICENSE__ for the terms of use.


Version: 0.88

Date: $Date: 2012/12/02 23:30:00 $

Submodules [hide private]

Functions [hide private]
 
who(typelist=None, objdict=None, verboselevel=0, returnlevel=0, deepSearch=False, _localCall=False)
Information about the PyDSTool user-created objects of types specified by typelist (defaults to all PyDSTool types and numpy arrays), from the objdict dictionary (or from globals() if this is not given).
source code
 
saveSession(sessionName=None, force=False, silent=False, deepSearch=False) source code
 
loadSession(sessionName, tolocals=False)
Use tolocals boolean option if loading a session into the local namespace of the caller (i.e.
source code
 
restart(delall=0)
restart clears out global databases of PyDSTool objects, and with the optional argument delall=1 will delete all PyDSTool objects found at the top-level of the caller's namespace (not including numpy arrays).
source code
Variables [hide private]
  __LICENSE__ = 'Copyright (C) 2007-2012, Georgia State Universi...
  __revision__ = '$Revision: 121202 $'
  verstr_parts = ['0', '7', '0']
  _pyDSToolTypes = [<type 'numpy.ndarray'>, <class 'PyDSTool.Gen...
  __session_ext = 'ses'
  __symbolic_ext = 'sym'
  ALLOW_THREADS = 1
  Abs = Abs (ModelSpec wrapper)
  Acos = Acos (ModelSpec wrapper)
  Asin = Asin (ModelSpec wrapper)
  Atan = Atan (ModelSpec wrapper)
  Atan2 = Atan2 (ModelSpec wrapper)
  BUFSIZE = 10000
  Betavariate = Betavariate (ModelSpec wrapper)
  CLIP = 0
  Ceil = Ceil (ModelSpec wrapper)
  Choice = Choice (ModelSpec wrapper)
  Cos = Cos (ModelSpec wrapper)
  Cosh = Cosh (ModelSpec wrapper)
  Degrees = Degrees (ModelSpec wrapper)
  E = QuantSpec e (ExpFuncSpec)
  ERR_CALL = 3
  ERR_DEFAULT = 0
  ERR_DEFAULT2 = 2084
  ERR_IGNORE = 0
  ERR_LOG = 5
  ERR_PRINT = 4
  ERR_RAISE = 2
  ERR_WARN = 1
  Exp = Exp (ModelSpec wrapper)
  Expovariate = Expovariate (ModelSpec wrapper)
  FLOATING_POINT_SUPPORT = 1
  FPE_DIVIDEBYZERO = 1
  FPE_INVALID = 8
  FPE_OVERFLOW = 2
  FPE_UNDERFLOW = 4
  Fabs = Fabs (ModelSpec wrapper)
  False_ = False
  Floor = Floor (ModelSpec wrapper)
  Fmod = Fmod (ModelSpec wrapper)
  Frexp = Frexp (ModelSpec wrapper)
  Gammavariate = Gammavariate (ModelSpec wrapper)
  Gauss = Gauss (ModelSpec wrapper)
  Getrandbits = Getrandbits (ModelSpec wrapper)
  Getstate = Getstate (ModelSpec wrapper)
  Hypot = Hypot (ModelSpec wrapper)
  Infinity = inf
  Jumpahead = Jumpahead (ModelSpec wrapper)
  Ldexp = Ldexp (ModelSpec wrapper)
  Log = Log (ModelSpec wrapper)
  Log10 = Log10 (ModelSpec wrapper)
  Lognormvariate = Lognormvariate (ModelSpec wrapper)
  MAXDIMS = 32
  Max = Max (ModelSpec wrapper)
  Min = Min (ModelSpec wrapper)
  Modf = Modf (ModelSpec wrapper)
  NAN = nan
  NINF = -inf
  NZERO = -0.0
  Normalvariate = Normalvariate (ModelSpec wrapper)
  PINF = inf
  PZERO = 0.0
  Paretovariate = Paretovariate (ModelSpec wrapper)
  Pi = QuantSpec pi (ExpFuncSpec)
  Pow = Pow (ModelSpec wrapper)
  RAISE = 2
  Radians = Radians (ModelSpec wrapper)
  Randint = Randint (ModelSpec wrapper)
  Random = Random (ModelSpec wrapper)
  Randrange = Randrange (ModelSpec wrapper)
  SHIFT_DIVIDEBYZERO = 0
  SHIFT_INVALID = 9
  SHIFT_OVERFLOW = 3
  SHIFT_UNDERFLOW = 6
  Sample = Sample (ModelSpec wrapper)
  ScalarType = (<type 'int'>, <type 'float'>, <type 'complex'>, ...
  Seed = Seed (ModelSpec wrapper)
  Setstate = Setstate (ModelSpec wrapper)
  Shuffle = Shuffle (ModelSpec wrapper)
  Sin = Sin (ModelSpec wrapper)
  Sinh = Sinh (ModelSpec wrapper)
  Sqrt = Sqrt (ModelSpec wrapper)
  Sum = Sum (ModelSpec wrapper)
  Systemrandom = Systemrandom (ModelSpec wrapper)
  Tan = Tan (ModelSpec wrapper)
  Tanh = Tanh (ModelSpec wrapper)
  True_ = True
  UFUNC_BUFSIZE_DEFAULT = 10000
  UFUNC_PYVALS_NAME = 'UFUNC_PYVALS'
  Uniform = Uniform (ModelSpec wrapper)
  Vonmisesvariate = Vonmisesvariate (ModelSpec wrapper)
  WRAP = 1
  Weibullvariate = Weibullvariate (ModelSpec wrapper)
  Wichmannhill = Wichmannhill (ModelSpec wrapper)
  _1DimplicitSolveMethods = ['newton', 'bisect', 'steffe']
  _implicitSolveMethods = ['newton', 'bisect', 'steffe', 'fsolve']
  absolute = <ufunc 'absolute'>
  add = <ufunc 'add'>
  bitwise_and = <ufunc 'bitwise_and'>
  bitwise_not = <ufunc 'invert'>
  bitwise_or = <ufunc 'bitwise_or'>
  bitwise_xor = <ufunc 'bitwise_xor'>
  c_ = <numpy.lib.index_tricks.CClass object at 0x115c330>
  cast = {<type 'numpy.int64'>: <function <lambda> at 0x6d0c30>,...
  conj = <ufunc 'conjugate'>
  conjugate = <ufunc 'conjugate'>
  copysign = <ufunc 'copysign'>
  deg2rad = <ufunc 'deg2rad'>
  divide = <ufunc 'divide'>
  equal = <ufunc 'equal'>
  exp2 = <ufunc 'exp2'>
  expm1 = <ufunc 'expm1'>
  floor_divide = <ufunc 'floor_divide'>
  fmax = <ufunc 'fmax'>
  fmin = <ufunc 'fmin'>
  greater_equal = <ufunc 'greater_equal'>
  index_exp = <numpy.lib.index_tricks.IndexExpression object at ...
  inf = inf
  infty = inf
  invert = <ufunc 'invert'>
  isinf = <ufunc 'isinf'>
  left_shift = <ufunc 'left_shift'>
  little_endian = True
  log1p = <ufunc 'log1p'>
  logaddexp = <ufunc 'logaddexp'>
  logaddexp2 = <ufunc 'logaddexp2'>
  logical_and = <ufunc 'logical_and'>
  logical_not = <ufunc 'logical_not'>
  logical_xor = <ufunc 'logical_xor'>
  maximum = <ufunc 'maximum'>
  mgrid = <numpy.lib.index_tricks.nd_grid object at 0x1147490>
  minimum = <ufunc 'minimum'>
  multiply = <ufunc 'multiply'>
  n = 9
  nan = nan
  nbytes = {<type 'numpy.int64'>: 8, <type 'numpy.int16'>: 2, <t...
  negative = <ufunc 'negative'>
  newaxis = None
  nextafter = <ufunc 'nextafter'>
  not_equal = <ufunc 'not_equal'>
  ogrid = <numpy.lib.index_tricks.nd_grid object at 0x1147bb0>
  ones_like = <ufunc 'ones_like'>
  r_ = <numpy.lib.index_tricks.RClass object at 0x115c2f0>
  rad2deg = <ufunc 'rad2deg'>
  reciprocal = <ufunc 'reciprocal'>
  remainder = <ufunc 'remainder'>
  right_shift = <ufunc 'right_shift'>
  rint = <ufunc 'rint'>
  s_ = <numpy.lib.index_tricks.IndexExpression object at 0x115c3f0>
  sctypeDict = {0: <type 'numpy.bool_'>, 1: <type 'numpy.int8'>,...
  sctypeNA = {'?': 'Bool', 'B': 'UInt8', 'Bool': <type 'numpy.bo...
  sctypes = {'complex': [<type 'numpy.complex64'>, <type 'numpy....
  signbit = <ufunc 'signbit'>
  spacing = <ufunc 'spacing'>
  square = <ufunc 'square'>
  subtract = <ufunc 'subtract'>
  t = '0'
  true_divide = <ufunc 'true_divide'>
  trunc = <ufunc 'trunc'>
  typeDict = {0: <type 'numpy.bool_'>, 1: <type 'numpy.int8'>, 2...
  typeNA = {'?': 'Bool', 'B': 'UInt8', 'Bool': <type 'numpy.bool...
  typecodes = {'All': '?bhilqpBHILQPfdgFDGSUVOMm', 'AllFloat': '...
Function Details [hide private]

who(typelist=None, objdict=None, verboselevel=0, returnlevel=0, deepSearch=False, _localCall=False)

source code 

Information about the PyDSTool user-created objects of types specified by typelist (defaults to all PyDSTool types and numpy arrays), from the objdict dictionary (or from globals() if this is not given).

returnlevel > 0 puts who() into silent mode, and it just returns either (1) a list of the objects found, or (2) a dictionary of object names -> objects found.

deepSearch = True causes a shallow search of list, tuple and dictionary objects defined at the topmost level of objdict. Otherwise only PyDSTool objects visible at the topmost level will be seen.

loadSession(sessionName, tolocals=False)

source code 

Use tolocals boolean option if loading a session into the local namespace of the caller (i.e. if calling this from within a function rather than interactively at the prompt)

restart(delall=0)

source code 

restart clears out global databases of PyDSTool objects, and with the optional argument delall=1 will delete all PyDSTool objects found at the top-level of the caller's namespace (not including numpy arrays).

delall=2 will cause a one-level deeper search of lists, tuples, and dictionaries for PyDSTool objects, and the lists etc. will be deleted. Additionally, numpy arrays will be deleted.


Variables Details [hide private]

__LICENSE__

Value:
'''Copyright (C) 2007-2012, Georgia State University
All rights reserved.

Parts of this distribution that originate from different authors are
individually marked as such. Copyright and licensing of those parts re\
mains
with the original authors.

...

_pyDSToolTypes

Value:
[<type 'numpy.ndarray'>,
 <class 'PyDSTool.Generator.baseclasses.Generator'>,
 <class 'PyDSTool.Variable.Variable'>,
 <class 'PyDSTool.Trajectory.Trajectory'>,
 <class 'PyDSTool.Events.Event'>,
 <class 'PyDSTool.Events.EventStruct'>,
 <class 'PyDSTool.Points.Point'>,
 <class 'PyDSTool.Points.Pointset'>,
...

ScalarType

Value:
(<type 'int'>,
 <type 'float'>,
 <type 'complex'>,
 <type 'long'>,
 <type 'bool'>,
 <type 'str'>,
 <type 'unicode'>,
 <type 'buffer'>,
...

cast

Value:
{<type 'numpy.int64'>: <function <lambda> at 0x6d0c30>, <type 'numpy.i\
nt16'>: <function <lambda> at 0x6d0c70>, <type 'numpy.complex128'>: <f\
unction <lambda> at 0x6d0cb0>, <type 'numpy.uint64'>: <function <lambd\
a> at 0x6d0cf0>, <type 'numpy.complex256'>: <function <lambda> at 0x6d\
0d70>, <type 'numpy.float32'>: <function <lambda> at 0x6d0db0>, <type \
'numpy.bool_'>: <function <lambda> at 0x6d0d30>, <type 'numpy.uint8'>:\
 <function <lambda> at 0x6d0e30>, <type 'numpy.int32'>: <function <lam\
bda> at 0x6d0f30>, <type 'numpy.int8'>: <function <lambda> at 0x6d0df0\
...

index_exp

Value:
<numpy.lib.index_tricks.IndexExpression object at 0x115c3b0>

nbytes

Value:
{<type 'numpy.int64'>: 8, <type 'numpy.int16'>: 2, <type 'numpy.comple\
x128'>: 16, <type 'numpy.uint64'>: 8, <type 'numpy.bool_'>: 1, <type '\
numpy.complex256'>: 32, <type 'numpy.float32'>: 4, <type 'numpy.int8'>\
: 1, <type 'numpy.uint8'>: 1, <type 'numpy.uint16'>: 2, <type 'numpy.o\
bject_'>: 4, <type 'numpy.float64'>: 8, <type 'numpy.int32'>: 4, <type\
 'numpy.string_'>: 0, <type 'numpy.void'>: 0, <type 'numpy.float128'>:\
 16, <type 'numpy.int32'>: 4, <type 'numpy.uint32'>: 4, <type 'numpy.u\
nicode_'>: 0, <type 'numpy.complex64'>: 8, <type 'numpy.uint32'>: 4}

sctypeDict

Value:
{0: <type 'numpy.bool_'>,
 1: <type 'numpy.int8'>,
 2: <type 'numpy.uint8'>,
 3: <type 'numpy.int16'>,
 4: <type 'numpy.uint16'>,
 5: <type 'numpy.int32'>,
 6: <type 'numpy.uint32'>,
 7: <type 'numpy.int32'>,
...

sctypeNA

Value:
{'?': 'Bool',
 'B': 'UInt8',
 'Bool': <type 'numpy.bool_'>,
 'Complex128': <type 'numpy.complex256'>,
 'Complex32': <type 'numpy.complex64'>,
 'Complex64': <type 'numpy.complex128'>,
 'D': 'Complex64',
 'F': 'Complex32',
...

sctypes

Value:
{'complex': [<type 'numpy.complex64'>,
             <type 'numpy.complex128'>,
             <type 'numpy.complex256'>],
 'float': [<type 'numpy.float32'>,
           <type 'numpy.float64'>,
           <type 'numpy.float128'>],
 'int': [<type 'numpy.int8'>,
         <type 'numpy.int16'>,
...

typeDict

Value:
{0: <type 'numpy.bool_'>,
 1: <type 'numpy.int8'>,
 2: <type 'numpy.uint8'>,
 3: <type 'numpy.int16'>,
 4: <type 'numpy.uint16'>,
 5: <type 'numpy.int32'>,
 6: <type 'numpy.uint32'>,
 7: <type 'numpy.int32'>,
...

typeNA

Value:
{'?': 'Bool',
 'B': 'UInt8',
 'Bool': <type 'numpy.bool_'>,
 'Complex128': <type 'numpy.complex256'>,
 'Complex32': <type 'numpy.complex64'>,
 'Complex64': <type 'numpy.complex128'>,
 'D': 'Complex64',
 'F': 'Complex32',
...

typecodes

Value:
{'All': '?bhilqpBHILQPfdgFDGSUVOMm',
 'AllFloat': 'fdgFDG',
 'AllInteger': 'bBhHiIlLqQpP',
 'Character': 'c',
 'Complex': 'FDG',
 'Datetime': 'Mm',
 'Float': 'fdg',
 'Integer': 'bhilqp',
...