topo.ep

Module

EventProcessor classes.

An EventProcessor is an object that the Simulation is aware of, and can accept simulation Events. EventProcessors can also generate Events, and will presumably do some computation as well. Most EventProcessors will be in other more specific packages, such as topo.sheet; those here are the remaining uncategorized EventProcessors. Any new EventProcessors classes added to this directory will automatically become available for any model.

class topo.ep.PulseGenerator(**params)[source]

Bases: topo.base.simulation.EventProcessor

A simple pulse generator node.

Produces pulses (scalars) of a fixed amplitude at a fixed frequency and phase. Period and phase are in units of simulation time.

param Number phase (allow_None=False, bounds=None, constant=False, default=0.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False)
The time after starting the simulation to wait before sending the first pulse.
param Number amplitude (allow_None=False, bounds=None, constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False)
The size of the pulse to generate.
param Number period (allow_None=False, bounds=(0.0, None), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False)
The period with which to repeat the pulse. Must be greater than zero.
input_event(conn, data)[source]

On input from self, generate output. Ignore all other inputs.

class topo.ep.SumUnit(**params)[source]

Bases: topo.base.simulation.EventProcessor

A simple unit that outputs the running sum of input received thus far.

class topo.ep.ThresholdUnit(**params)[source]

Bases: topo.base.simulation.EventProcessor

A simple pulse-accumulator threshold node. Accumulates incoming pulses. When the accumulated value rises above threshold, it generates a pulse of a given amplitude and resets the accumulator to zero.

param Number threshold (allow_None=False, bounds=None, constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False)
The threshold at which to fire.
param Number initial_accum (allow_None=False, bounds=None, constant=False, default=0.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False)
The initial accumulator value.
param Number amplitude (allow_None=False, bounds=None, constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False)
The size of the pulse to generate.

Table Of Contents

This Page