python_models8.neuron.implementations package

Submodules

python_models8.neuron.implementations.my_full_neuron_impl module

class python_models8.neuron.implementations.my_full_neuron_impl.MyFullNeuronImpl(threshold, v, exc_input, inh_input)[source]

Bases: AbstractNeuronImpl

add_parameters(parameters: RangeDictionary) None[source]

Add the initial values of the parameters to the parameter holder.

Parameters:

parameters (RangeDictionary) – A holder of the parameters

add_state_variables(state_variables: RangeDictionary) None[source]

Add the initial values of the state variables to the state variables holder.

Parameters:

state_variables (RangeDictionary) – A holder of the state variables

property binary_name: str

The name of the binary executable of this implementation.

Return type:

str

get_global_weight_scale() float[source]

Get the weight scaling required by this model.

Return type:

float

get_n_synapse_types() int[source]

Get the number of synapse types supported by the model.

Return type:

int

get_recordable_data_types() Mapping[str, DataType][source]

Get the data type of the variables that can be recorded.

Returns:

dictionary of name of variable to data type of variable

Return type:

dict(str,DataType)

get_recordable_units(variable: str) str[source]

Get the units of the given variable that can be recorded.

Parameters:

variable (str) – The name of the variable

get_recordable_variable_index(variable: str) int[source]

Get the index of the variable in the list of variables that can be recorded.

Parameters:

variable (str) – The name of the variable

Return type:

int

get_recordable_variables() List[str][source]

Get the names of the variables that can be recorded in this model.

Return type:

list(str)

get_synapse_id_by_target(target: str) int | None[source]

Get the ID of a synapse given the name.

Parameters:

target (str) – The name of the synapse

Return type:

int

get_synapse_targets() List[str][source]

Get the target names of the synapse type.

Return type:

list(str)

get_units(variable: str) str[source]

Get the units of the given variable.

Parameters:

variable (str) – The name of the variable

Return type:

str

property is_conductance_based: bool

Whether the model uses conductance.

Return type:

bool

is_recordable(variable: str) bool[source]

Determine if the given variable can be recorded.

Parameters:

variable (str) – The name of the variable

Return type:

bool

property model_name: str

The name of the model.

Return type:

str

property structs: List[Struct]

A list of structures used by the implementation.

Return type:

list(Struct)

Module contents