SpatialNeuron class¶
(Shortest import: from brian2 import SpatialNeuron)
-
class
brian2.spatialneuron.spatialneuron.
SpatialNeuron
(morphology=None, model=None, threshold=None, refractory=False, reset=None, events=None, threshold_location=None, dt=None, clock=None, order=0, Cm=0.009 * metre ** -4 * kilogram ** -1 * second ** 4 * amp ** 2, Ri=1.5 * metre ** 3 * kilogram * second ** -3 * amp ** -2, name='spatialneuron*', dtype=None, namespace=None, method=('exact', 'exponential_euler', 'rk2', 'heun'), method_options=None)[source]¶ Bases:
brian2.groups.neurongroup.NeuronGroup
A single neuron with a morphology and possibly many compartments.
Attributes
user_equations
The original equations as specified by the user (i.e. Methods
spatialneuron_attribute
(neuron, name)Selects a subtree from SpatialNeuron
neuron and returns aSpatialSubgroup
.spatialneuron_segment
(neuron, item)Selects a segment from SpatialNeuron
neuron, where item is a slice of either compartment indexes or distances.Details
-
user_equations
¶ The original equations as specified by the user (i.e. before inserting point-currents into the membrane equation, before adding all the internally used variables and constants, etc.).
-
static
spatialneuron_attribute
(neuron, name)[source]¶ Selects a subtree from
SpatialNeuron
neuron and returns aSpatialSubgroup
. If it does not exist, returns theGroup
attribute.
-
static
spatialneuron_segment
(neuron, item)[source]¶ Selects a segment from
SpatialNeuron
neuron, where item is a slice of either compartment indexes or distances. Note a: segment is not aSpatialNeuron
, only aGroup
.
-