pynn_brainscales.brainscales2.examples.multicompartment
Classes
|
A single iso-potential compartment of a multi-compartmental neuron model. |
|
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, 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.
main
() Create a chain of compartments with three compartments.
Record the membrane voltage in the first compartment while synaptic inputs are injected into it. A plot in which the membrane voltage and recorded spikes are displayed is saved to disk.