Dendrite
self, proj, post_rank, idx) core.Dendrite.Dendrite(
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)
:
= proj.dendrite(6) dendrite
Attributes
Name | Description |
---|---|
post_rank | Rank of the post-synaptic neuron. |
pre_ranks | List of ranks of pre-synaptic neurons. |
proj | Parent projection. |
size | Number of synapses. |
synapses | Iteratively returns the synapses corresponding to this dendrite. |
Methods
Name | Description |
---|---|
create_synapse | Creates a synapse for this dendrite with the given pre-synaptic neuron. |
create_synapses | Creates a synapse for this dendrite with the given pre-synaptic neurons. |
get | Returns the value of a variable/parameter. |
prune_synapse | Removes the synapse with the given pre-synaptic neuron from the dendrite. |
prune_synapses | Removes the synapses which belong to the provided pre-synaptic neurons from the dendrite. |
receptive_field | Returns the given variable as a receptive field. |
set | Sets the value of a parameter/variable of all synapses. |
synapse | Returns the synapse coming from the corresponding presynaptic neuron. |
create_synapse
=0.0, delay=0) core.Dendrite.Dendrite.create_synapse(rank, w
Creates a synapse for this dendrite with the given pre-synaptic neuron.
Parameters
Name | Type | Description | Default |
---|---|---|---|
rank | int | rank of the pre-synaptic neuron | required |
w | float | synaptic weight. | 0.0 |
delay | float | synaptic delay. | 0 |
create_synapses
=None, delays=None) core.Dendrite.Dendrite.create_synapses(ranks, weights
Creates a synapse for this dendrite with the given pre-synaptic neurons.
Parameters
Name | Type | Description | Default |
---|---|---|---|
ranks | list[int] | list of ranks of the pre-synaptic neurons. | required |
weights | list[float] | list of synaptic weights (default: 0.0). | None |
delays | list[float] | list of synaptic delays (default = dt). | None |
get
core.Dendrite.Dendrite.get(name)
Returns the value of a variable/parameter.
Example:
'w') dendrite.get(
Parameters
Name | Type | Description | Default |
---|---|---|---|
name | str | name of the parameter/variable. | required |
Returns
Name | Type | Description |
---|---|---|
float | a single value. |
prune_synapse
core.Dendrite.Dendrite.prune_synapse(rank)
Removes the synapse with the given pre-synaptic neuron from the dendrite.
Parameters
Name | Type | Description | Default |
---|---|---|---|
rank | int | rank of the pre-synaptic neuron | required |
prune_synapses
core.Dendrite.Dendrite.prune_synapses(ranks)
Removes the synapses which belong to the provided pre-synaptic neurons from the dendrite.
Parameters
Name | Type | Description | Default |
---|---|---|---|
ranks | list[int] | list of ranks of the pre-synaptic neurons. | required |
receptive_field
='w', fill=0.0) core.Dendrite.Dendrite.receptive_field(variable
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
Name | Type | Description | Default |
---|---|---|---|
variable | str | name of the variable (default = ‘w’) | 'w' |
fill | float | value to use when a synapse does not exist (default: 0.0). | 0.0 |
Returns
Name | Type | Description |
---|---|---|
np.array | an array. |
set
set(value) core.Dendrite.Dendrite.
Sets the value of a parameter/variable of all synapses.
Example:
set( { 'tau' : 20, 'w'= Uniform(0.0, 1.0) } ) dendrite.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | dict | a dictionary containing the parameter/variable names as keys. | required |
synapse
core.Dendrite.Dendrite.synapse(pos)
Returns the synapse coming from the corresponding presynaptic neuron.
Parameters
Name | Type | Description | Default |
---|---|---|---|
pos | int | tuple[int] | can be either the rank or the coordinates of the presynaptic neuron | required |
Returns
Name | Type | Description |
---|---|---|
IndividualSynapse | IndividualSynapse wrapper instance. |