3.10. Dendrite

A Dendrite is a sub-group of a Projection, gathering the synapses between the pre-synaptic population and a single post-synaptic neuron.

3.10.1. Class Dendrite

class ANNarchy.Dendrite(proj, post_rank, idx)[source]

A Dendrite is a sub-group of a Projection, gathering the synapses between the pre-synaptic population and a single post-synaptic neuron.

It can not be created directly, only through a call to Projection.dendrite(rank):

dendrite = proj.dendrite(6)
create_synapse(rank, w=0.0, delay=0)[source]

Creates a synapse for this dendrite with the given pre-synaptic neuron.

Parameters:
  • rank – rank of the pre-synaptic neuron
  • w – synaptic weight (defalt: 0.0).
  • delay – synaptic delay (default = dt)
get(name)[source]

Returns the value of a variable/parameter.

Parameters:name – name of the parameter/variable.

Example:

dendrite.get('w')
prune_synapse(rank)[source]

Removes the synapse with the given pre-synaptic neuron from the dendrite.

Parameters:rank – rank of the pre-synaptic neuron
receptive_field(variable='w', fill=0.0)[source]

Returns the given variable as a receptive field.

A Numpy array of the same geometry as the pre-synaptic population is returned. Non-existing synapses are replaced by zeros (or the value fill).

Parameters:
  • variable – name of the variable (default = ‘w’)
  • fill – value to use when a synapse does not exist (default: 0.0).
set(value)[source]

Sets the value of a parameter/variable of all synapses.

Parameters:value – a dictionary containing the parameter/variable names as keys.

Example:

dendrite.set( 'tau' : 20, 'w'= Uniform(0.0, 1.0) } )
synapse(pos)[source]

Returns the synapse coming from the corresponding presynaptic neuron.

Parameters:pos – can be either the rank or the coordinates of the presynaptic neuron
pre_ranks

List of ranks of pre-synaptic neurons.

size

Number of synapses.

synapses

Iteratively returns the synapses corresponding to this dendrite.