pynn_brainscales.brainscales2.morphology.builder.McNeuronAutomaticBase

class pynn_brainscales.brainscales2.morphology.builder.McNeuronAutomaticBase(**parameters)

Bases: pynn_brainscales.brainscales2.morphology.mc_neuron_base.CommonBase, pygrenade_vx.network.abstract.multicompartment.neuron.Neuron

Base class for neurons which use the automatic mapping.

These neurons support automated calibration. Cell parameters correspond to calibration targets in calix.

__init__(**parameters)

Initialize self. See help(type(self)) for accurate signature.

Methods

generate_input_data(population, experiment, …)

Generate input data for this population.

generate_vertex(population)

Generate vertex representation for this population.

get_compartment_ids(labels)

Get compartment Ids of compartments with the specified labels.

get_label(compartment_id)

Retrieve label of a single compartment.

get_labels()

Retrieve list of all used labels.

get_observable_type(name, compartment)

Get the type of the observable.

get_receptor(name, compartment)

Get receptor by name for compartment.

get_recording_site(name, compartment)

Get recording site by name.

get_spike_output_sequence(compartment)

Get sequence for spike output.

Attributes

analog_obs_port

compartment_ids_grenade

conductance_based

connection_ids_grenade

grenade_neuron

injectable

mechanisms_ids_grenade

recording_site_dimension_unit

spike_port

analog_obs_port: int = -1
compartment_ids_grenade = {}
conductance_based: Final[Optional[bool, None]] = None
connection_ids_grenade = {}
generate_input_data(population: pyNN.common.populations.Population, experiment: pygrenade_vx.network.abstract.frontend.ExperimentSnippet, snippet_begin_time: float, snippet_end_time: float)Dict[int, pygrenade_common.PortData]

Generate input data for this population. :param population: Population featuring this cell’s celltype :param experiment: Experiment snippet to generate data for :param snippet_begin_time: Begin time of snippet :param snippet_end_time: End time of snippet :return: Population input data

classmethod generate_vertex(population: pyNN.common.populations.Population)pygrenade_common.Population

Generate vertex representation for this population. :param population: Population featuring this cell’s celltype :return: Population vertex

classmethod get_compartment_ids(labels: Sequence[str])List[pyhalco_hicann_dls_vx_v3.CompartmentOnLogicalNeuron]

Get compartment Ids of compartments with the specified labels.

Parameters

labels – Labels for which to extract the compartment IDs.

Returns

IDs of compartments for which the given labels match. Note that a single label can match one or more compartment IDS.

Raises

ValueError – If no compartment can be matched to one of the given labels.

classmethod get_label(compartment_id: pyhalco_hicann_dls_vx_v3.CompartmentOnLogicalNeuron)str

Retrieve label of a single compartment.

Parameters

compartment_id – ID of compartment for which to retrieve the label.

Returns

Label of selected compartment.

classmethod get_labels()List[str]

Retrieve list of all used labels.

Returns

List of all used labels.

classmethod get_observable_type(name: str, compartment: pygrenade_common.CompartmentOnNeuron)pynn_brainscales.brainscales2.recording_data.ObservableType

Get the type of the observable.

Parameters
  • name – Name of variable for which to get the observable type.

  • compartment – Compartment identifier

Returns

Type of observable.

get_receptor(name: str, compartment: pygrenade_common.CompartmentOnNeuron)pygrenade_common.MultiIndexSequence

Get receptor by name for compartment. :param name: Name of receptor :param compartment: Compartment identifier

get_recording_site(name: str, compartment: pygrenade_common.CompartmentOnNeuron)int

Get recording site by name.

Parameters
  • name – Name of observable/mechanism which should be recorded.

  • compartment – Compartment identifier

Returns

ID of the neuron circuit/mechanism which corresponds to the recorded observable.

get_spike_output_sequence(compartment: pygrenade_common.CompartmentOnNeuron)pygrenade_common.MultiIndexSequence

Get sequence for spike output.

Parameters

compartment – Compartment identifier.

Returns

MultiIndexSequence which specifies the spike output.

grenade_neuron = Neuron( Number of compartments: 0 Connections: 0 [] )
injectable: Final[bool] = True
mechanisms_ids_grenade = {}
recording_site_dimension_unit = MechanismOnCompartmentDimensionUnit()
spike_port: int = -1
units: List