pynn_brainscales.brainscales2.examples.multicompartment

Classes

Compartment(*, positions, label, …)

A single iso-potential compartment of a multi-compartmental neuron model.

SharedLineConnection(start, stop, row)

Functions

pynn_brainscales.brainscales2.examples.multicompartment.create_mc_neuron(name: str, compartments: List[pynn_brainscales.brainscales2.morphology.parts.Compartment], connections: Optional[List[pynn_brainscales.brainscales2.morphology.parts.SharedLineConnection], None] = None, single_active_circuit: bool = False)pynn_brainscales.brainscales2.morphology.mc_neuron_base.McNeuronBase

Create a multicompartment neuron class.

Parameters
  • name – Name of the newly created class.

  • compartments – Compartments of the multicompartment neuron.

  • connections – Specifies where the shared line is connected.

  • single_active_circuit – Disable leak, capacitance and threshold for all but the first circuit in each comaprtment.

Returns

Class for a multi-compartmental neuron model with the given compartments and connections.

pynn_brainscales.brainscales2.examples.multicompartment.create_neuron_class(length: int)

Create a neuron class for a dendritic chain.

Parameters

length – Number of compartments in the chain.

pynn_brainscales.brainscales2.examples.multicompartment.main(length: int = 3, runtime: float = 0.15)

Create a chain of compartments.

Record the membrane voltage in each compartment while inputs are injected in the different compartments.

Parameters
  • length – Length of the chain.

  • runtime – Experiment runtime in ms. Note that for runtimes over around 0.15 ms, samples from the CADC are lost, i.e. the data is not recorded of the whole experiment time.