Package PyDSTool :: Package Toolbox :: Module event_driven_simulator
[hide private]
[frames] | no frames]

Module event_driven_simulator

source code

Classes [hide private]
  connection
  node
  FIFOqueue_uniquenode
Only one entry per node is allowed.
  map
  map2D
  map1D
  delay_map
  identity_map
  composed_map1D
  simulator
Mapping-based, event-driven simulator for dynamical systems reductions.
Functions [hide private]
 
extract_digraph(mspec, node_types, connxn_types)
Extract directed graph of connections from a ModelSpec description of a dynamical systems model, using the node and connection types provided.
source code
 
head(hier_name) source code
 
tail(hier_name) source code
 
sequences_to_eventlist(seq_dict)
seq_dict maps string symbols to increasing-ordered sequences of times.
source code
Variables [hide private]
  all
  predicate_op
  less
  putmask
  shape
  complexfloating
  DomainType
  swapaxes
  float32
  int32
  greater
  float96
  complex_
  ones
  integer
  API = API_class()
  targetLangs = ['c', 'python', 'matlab']
  API_class
  argmax
  sign
  Macheps
  Continuous = Continuous Domain
  intersect
  null_predicate = null_predicate_class(None)
  complex64
  atleast_1d
  Discrete = Discrete Domain
  float64
  float_
  less_equal
  os
  float
  log
  sometrue
  complex128
  alltrue
  zeros
  ndarray
  int_
  complex192
  int0
  int8
  argmin
  double
  norm
  finfo
  spy
  clip
  int
  logical_or
  deepcopy
  floating
  any
  null_predicate_class
  sqrt
  complex
  take
  LargestInt32 = 2147483647
  fit_function
  int16
  mat
  sys
  npy
  minpack
  types
  searchsorted
  int64
  exp
  time
  NaN = nan
  Inf = inf
  isfinite = <ufunc 'isfinite'>
  _classes = ['connection', 'node', 'simulator', 'composed_map1D...
  _functions = ['extract_digraph']
  _instances = ['idmap']
  idmap = identity_map()
  _all_complex = (<type 'complex'>, <type 'numpy.complexfloating...
  _all_float = (<type 'float'>, <type 'numpy.floating'>, <type '...
  _all_int = (<type 'int'>, <type 'numpy.integer'>, <type 'numpy...
  _all_numpy_complex = (<type 'numpy.complex128'>, <type 'numpy....
  _all_numpy_float = (<type 'numpy.float64'>, <type 'numpy.float...
  _all_numpy_int = (<type 'numpy.int32'>, <type 'numpy.int32'>, ...
  _complex_types = (<type 'complex'>, <type 'numpy.complexfloati...
  _float_types = (<type 'float'>, <type 'numpy.floating'>)
  _int_types = (<type 'int'>, <type 'numpy.integer'>)
  _num_equivtype = {<type 'float'>: <type 'numpy.float64'>, <typ...
  _num_maxmin = {<type 'numpy.int32'>: [-2147483648, 2147483647]...
  _num_name2equivtypes = {'float': (<type 'float'>, <type 'numpy...
  _num_name2type = {'float': <type 'numpy.float64'>, 'int': <typ...
  _num_type2name = {<type 'float'>: 'float', <type 'int'>: 'int'...
  _num_types = (<type 'float'>, <type 'int'>, <type 'numpy.float...
  _pytypefromtype = {<type 'numpy.int32'>: <type 'int'>, <type '...
  _real_types = (<type 'int'>, <type 'numpy.integer'>, <type 'fl...
  _seq_types = (<type 'list'>, <type 'tuple'>, <type 'numpy.ndar...
Function Details [hide private]

extract_digraph(mspec, node_types, connxn_types)

source code 

Extract directed graph of connections from a ModelSpec description of a dynamical systems model, using the node and connection types provided. The name attributes of those types are used to search the ModelSpec.

sequences_to_eventlist(seq_dict)

source code 

seq_dict maps string symbols to increasing-ordered sequences of times. Returns a single list of (symbol, time) pairs ordered by time.


Variables Details [hide private]

_classes

Value:
['connection',
 'node',
 'simulator',
 'composed_map1D',
 'map',
 'map1D',
 'map2D',
 'identity_map',
...

_all_complex

Value:
(<type 'complex'>,
 <type 'numpy.complexfloating'>,
 <type 'numpy.complex128'>,
 <type 'numpy.complex64'>,
 <type 'numpy.complex128'>)

_all_float

Value:
(<type 'float'>,
 <type 'numpy.floating'>,
 <type 'numpy.float64'>,
 <type 'numpy.float32'>,
 <type 'numpy.float64'>)

_all_int

Value:
(<type 'int'>,
 <type 'numpy.integer'>,
 <type 'numpy.int32'>,
 <type 'numpy.int32'>,
 <type 'numpy.int8'>,
 <type 'numpy.int16'>,
 <type 'numpy.int32'>,
 <type 'numpy.int64'>)

_all_numpy_complex

Value:
(<type 'numpy.complex128'>,
 <type 'numpy.complex64'>,
 <type 'numpy.complex128'>)

_all_numpy_float

Value:
(<type 'numpy.float64'>,
 <type 'numpy.float32'>,
 <type 'numpy.float64'>)

_all_numpy_int

Value:
(<type 'numpy.int32'>,
 <type 'numpy.int32'>,
 <type 'numpy.int8'>,
 <type 'numpy.int16'>,
 <type 'numpy.int32'>,
 <type 'numpy.int64'>)

_complex_types

Value:
(<type 'complex'>, <type 'numpy.complexfloating'>)

_num_equivtype

Value:
{<type 'float'>: <type 'numpy.float64'>,
 <type 'int'>: <type 'numpy.int32'>,
 <type 'numpy.integer'>: <type 'numpy.int32'>,
 <type 'numpy.floating'>: <type 'numpy.float64'>,
 <type 'numpy.int8'>: <type 'numpy.int32'>,
 <type 'numpy.int16'>: <type 'numpy.int32'>,
 <type 'numpy.int32'>: <type 'numpy.int32'>,
 <type 'numpy.int32'>: <type 'numpy.int32'>,
...

_num_maxmin

Value:
{<type 'numpy.int32'>: [-2147483648, 2147483647],
 <type 'numpy.float64'>: [-inf, inf]}

_num_name2equivtypes

Value:
{'float': (<type 'float'>,
           <type 'numpy.floating'>,
           <type 'numpy.float64'>,
           <type 'numpy.float32'>,
           <type 'numpy.float64'>),
 'int': (<type 'int'>,
         <type 'numpy.integer'>,
         <type 'numpy.int32'>,
...

_num_name2type

Value:
{'float': <type 'numpy.float64'>, 'int': <type 'numpy.int32'>}

_num_type2name

Value:
{<type 'float'>: 'float',
 <type 'int'>: 'int',
 <type 'numpy.integer'>: 'int',
 <type 'numpy.floating'>: 'float',
 <type 'numpy.int8'>: 'int',
 <type 'numpy.int16'>: 'int',
 <type 'numpy.int32'>: 'int',
 <type 'numpy.int32'>: 'int',
...

_num_types

Value:
(<type 'float'>,
 <type 'int'>,
 <type 'numpy.floating'>,
 <type 'numpy.integer'>)

_pytypefromtype

Value:
{<type 'numpy.int32'>: <type 'int'>,
 <type 'numpy.float64'>: <type 'float'>}

_real_types

Value:
(<type 'int'>,
 <type 'numpy.integer'>,
 <type 'float'>,
 <type 'numpy.floating'>)

_seq_types

Value:
(<type 'list'>, <type 'tuple'>, <type 'numpy.ndarray'>)