SpatialNeuron class

(Shortest import: from brian2 import SpatialNeuron)

class brian2.spatialneuron.spatialneuron.SpatialNeuron(*args, **kw)[source]

Bases: NeuronGroup

A single neuron with a morphology and possibly many compartments.

Attributes

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.).

Methods

spatialneuron_attribute(neuron, name)

Selects a subtree from SpatialNeuron neuron and returns a SpatialSubgroup.

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 a SpatialSubgroup. If it does not exist, returns the Group 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 a SpatialNeuron, only a Group.