SynapticPathway class

(Shortest import: from brian2.synapses.synapses import SynapticPathway)

class brian2.synapses.synapses.SynapticPathway(synapses, code, prepost, objname=None, delay=None, event='spike')[source]

Bases: brian2.groups.group.CodeRunner, brian2.groups.group.Group

The CodeRunner that applies the pre/post statement(s) to the state variables of synapses where the pre-/postsynaptic group spiked in this time step.

Parameters:

synapses : Synapses

Reference to the main Synapses object

prepost : {‘pre’, ‘post’}

Whether this object should react to pre- or postsynaptic spikes

objname : str, optional

The name to use for the object, will be appendend to the name of synapses to create a name in the sense of Nameable. The synapses object should allow access to this object via synapses.getattr(objname). It has to use the actual objname attribute instead of relying on the provided argument, since the name may have changed to become unique. If None is provided (the default), prepost+'*' will be used (see Nameable for an explanation of the wildcard operator).

delay : Quantity, optional

A scalar delay (same delay for all synapses) for this pathway. If not given, delays are expected to vary between synapses.

Attributes

_initialise_queue_codeobj The CodeObject initalising the SpikeQueue at the begin of a run
queue The SpikeQueue

Methods

initialise_queue()
push_spikes()

Details

_initialise_queue_codeobj

The CodeObject initalising the SpikeQueue at the begin of a run

queue

The SpikeQueue

before_run(*args, **kwds)
initialise_queue()[source]
push_spikes()[source]
update_abstract_code(*args, **kwds)