python_models8.neuron.synapse_types package

Submodules

python_models8.neuron.synapse_types.my_synapse_type module

class python_models8.neuron.synapse_types.my_synapse_type.MySynapseType(my_ex_synapse_parameter, my_in_synapse_parameter, my_exc_init, my_inh_init)[source]

Bases: AbstractSynapseType

Parameters:
  • structs (list(Struct)) – The structures of the component

  • units (dict) – The units to use for each parameter

add_parameters(parameters)[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)[source]

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

Parameters:

state_variables (RangeDictionary) – A holder of the state variables

get_n_synapse_types() int[source]

Get the number of synapse types supported.

Returns:

The number of synapse types supported

Return type:

int

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

Get the ID of a synapse given the name.

Returns:

The ID of the synapse

Return type:

int

get_synapse_targets() Sequence[str][source]

Get the target names of the synapse type.

Returns:

an array of strings (usually a list or tuple)

Return type:

iterable(str)

property my_ex_synapse_parameter
property my_exc_init
property my_in_synapse_parameter
property my_inh_init

Module contents