SpatialStateUpdater class

(Shortest import: from brian2.spatialneuron.spatialneuron import SpatialStateUpdater)

class brian2.spatialneuron.spatialneuron.SpatialStateUpdater(group, method, clock, order=0)[source]

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

The CodeRunner that updates the state variables of a SpatialNeuron at every timestep.

TODO: all internal variables (u_minus etc) could be inserted in the SpatialNeuron.

Methods

before_run([run_namespace, level])
number_branches(morphology[, n, parent]) Recursively number the branches and return their total number.

Details

before_run(run_namespace=None, level=0)[source]
number_branches(morphology, n=0, parent=-1)[source]

Recursively number the branches and return their total number. n is the index number of the current branch. parent is the index number of the parent branch.