pynn_brainscales.brainscales2.examples.morphology_builder

We use the morphology builder to define an abstract graph of a multi-compartmental neuron model and then map it automatically to BrainScaleS-2.

With a CompartmentBuilder, we can construct different Compartments with different mechanisms. These compartments can then be connected with the MorphologyBuilder to define a multi-compartmental neuron model.

We will also show how to record the different mechanisms and how to connect other neurons to multi-compartmental neurons.

If you want to manually define the mapping from compartments to neuron circuits, have a look at the example ‘manual_morphology_builder.py’.

Classes

CompartmentBuilder()

Construct a new compartment class.

Connection(source, target[, strength])

Connection that contains source and target of a connection.

MorphologyBuilder()

Functions

pynn_brainscales.brainscales2.examples.morphology_builder.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.morphology_builder.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.