pygrenade_vx.network.multicompartment.morphology_builder.Neuron

class pygrenade_vx.network.multicompartment.morphology_builder.Neuron

Bases: object

Multicompartment-Neuron class.

This is not the fully implemented neuron but contains the necessary data to construct a neuron in the final implementation from it.

__init__()

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

Methods

neuron_to_grenade()

Build a grenade-neuron and adds compartments and compartment-connections to grenade-neuron.

reverse_translate(native_parameters)

Return the neuron parameters.

translate(parameters[, copy])

Return the neuron parameters.

Attributes

compartment_ids_grenade

compartments

connections

default_parameters

translations

compartment_ids_grenade = {}
compartments = {}
connections = []
default_parameters = {}
neuron_to_grenade()_pygrenade_vx_network.Neuron

Build a grenade-neuron and adds compartments and compartment-connections to grenade-neuron.

Returns

Grenade object of the neuron.

reverse_translate(native_parameters)

Return the neuron parameters.

Overwritten to prevent a translation to itself to increase performance.

Parameters

native_parameters – Parameters of the neuron.

Returns

Paramters of the neuron.

translate(parameters, copy=True)

Return the neuron parameters.

Overwritten to prevent a translation to itself to increase performance.

Parameters
  • parameters – Parameters of the neuron.

  • copy – If true return a copy of the paramters.

Returns

Parameters of the neuron.

translations = {}