hxtorch.spiking.morphology.SingleCompartmentNeuron

class hxtorch.spiking.morphology.SingleCompartmentNeuron(size: int, expand_horizontally: bool = False)

Bases: hxtorch.spiking.morphology.Morphology

Neuron with a single iso-potential compartment.

The compartment can consist of several neuron circuits. For all but the first neuron circuit leak, threshold and capacitance are disabled.

__init__(size: int, expand_horizontally: bool = False)None

Create a single-compartment neuron.

Parameters
  • size – Number of neuron circuits per compartment.

  • expand_horizontally – Expand the neurons in the same row before starting a second row. If False, the columns are filled before the shape is expanded horizontally.

Methods

__init__(size[, expand_horizontally])

Create a single-compartment neuron.

implement_morphology(coord, neuron_block)

Configure the atomic neurons in the given neuron block to represent this morphology.

Attributes

compartments

Unplaced coordinate of the logical neuron.

logical_neuron

Base configuration of the logical neuron.

property compartments

Unplaced coordinate of the logical neuron.

implement_morphology(coord: pyhalco_hicann_dls_vx_v3.LogicalNeuronOnDLS, neuron_block: pylola_vx_v3.NeuronBlock)None

Configure the atomic neurons in the given neuron block to represent this morphology.

Parameters
  • coord – Coordinate of the logical neuron which should be configured.

  • neuron_block – The configuration of neurons at coord will be changed such that a neuron with the given morphology is implemented.

property logical_neuron

Base configuration of the logical neuron.

Default constructed logical neuron, the connections between neuron circuits are configured such that the specified morphology is implemented.