GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
pygenn.genn_groups.NeuronGroup Class Reference

Class representing a group of neurons. More...

Inheritance diagram for pygenn.genn_groups.NeuronGroup:
pygenn.genn_groups.Group pygenn.genn_groups.Group

Public Member Functions

def __init__ (self, name)
 Init NeuronGroup. More...
 
def current_spikes (self)
 Current spikes from GeNN. More...
 
def delay_slots (self)
 Maximum delay steps needed for this group. More...
 
def size (self)
 
def set_neuron (self, model, param_space, var_space)
 Set neuron, its parameters and initial variables. More...
 
def add_to (self, model_spec, num_neurons)
 Add this NeuronGroup to the GeNN modelspec. More...
 
def add_extra_global_param (self, param_name, param_values)
 Add extra global parameter. More...
 
def load (self, slm, scalar)
 Loads neuron group. More...
 
def reinitialise (self, slm, scalar)
 Reinitialise neuron group. More...
 
def __init__ (self, name)
 Init NeuronGroup. More...
 
def current_spikes (self)
 Current spikes from GeNN. More...
 
def delay_slots (self)
 Maximum delay steps needed for this group. More...
 
def size (self)
 
def set_neuron (self, model, param_space, var_space)
 Set neuron, its parameters and initial variables. More...
 
def add_to (self, nn_model, num_neurons)
 Add this NeuronGroup to the GeNN NNmodel. More...
 
def add_extra_global_param (self, param_name, param_values)
 Add extra global parameter. More...
 
def load (self, slm, scalar)
 Loads neuron group. More...
 
def reinitialise (self, slm, scalar)
 Reinitialise neuron group. More...
 
- Public Member Functions inherited from pygenn.genn_groups.Group
def __init__ (self, name)
 Init Group. More...
 
def set_var (self, var_name, values)
 Set values for a Variable. More...
 
def __init__ (self, name)
 Init Group. More...
 
def set_var (self, var_name, values)
 Set values for a Variable. More...
 

Public Attributes

 neuron
 
 spikes
 
 spike_count
 
 spike_que_ptr
 
 is_spike_source_array
 
 type
 
 pop
 
- Public Attributes inherited from pygenn.genn_groups.Group
 name
 
 vars
 
 extra_global_params
 

Detailed Description

Class representing a group of neurons.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def pygenn.genn_groups.NeuronGroup.__init__ (   self,
  name 
)

Init NeuronGroup.

Parameters
namestring name of the group

◆ __init__() [2/2]

def pygenn.genn_groups.NeuronGroup.__init__ (   self,
  name 
)

Init NeuronGroup.

Parameters
namestring name of the group

Member Function Documentation

◆ add_extra_global_param() [1/2]

def pygenn.genn_groups.NeuronGroup.add_extra_global_param (   self,
  param_name,
  param_values 
)

Add extra global parameter.

Parameters
param_namestring with the name of the extra global parameter
param_valuesiterable or a single value

◆ add_extra_global_param() [2/2]

def pygenn.genn_groups.NeuronGroup.add_extra_global_param (   self,
  param_name,
  param_values 
)

Add extra global parameter.

Parameters
param_namestring with the name of the extra global parameter
param_valuesiterable or a single value

◆ add_to() [1/2]

def pygenn.genn_groups.NeuronGroup.add_to (   self,
  model_spec,
  num_neurons 
)

Add this NeuronGroup to the GeNN modelspec.

Parameters
model_specGeNN modelspec
num_neuronsint number of neurons

◆ add_to() [2/2]

def pygenn.genn_groups.NeuronGroup.add_to (   self,
  nn_model,
  num_neurons 
)

Add this NeuronGroup to the GeNN NNmodel.

Parameters
nn_modelGeNN NNmodel
num_neuronsint number of neurons

◆ current_spikes() [1/2]

def pygenn.genn_groups.NeuronGroup.current_spikes (   self)

Current spikes from GeNN.

◆ current_spikes() [2/2]

def pygenn.genn_groups.NeuronGroup.current_spikes (   self)

Current spikes from GeNN.

◆ delay_slots() [1/2]

def pygenn.genn_groups.NeuronGroup.delay_slots (   self)

Maximum delay steps needed for this group.

◆ delay_slots() [2/2]

def pygenn.genn_groups.NeuronGroup.delay_slots (   self)

Maximum delay steps needed for this group.

◆ load() [1/2]

def pygenn.genn_groups.NeuronGroup.load (   self,
  slm,
  scalar 
)

Loads neuron group.

Parameters
slmSharedLibraryModel instance for acccessing variables
scalarString specifying "scalar" type

◆ load() [2/2]

def pygenn.genn_groups.NeuronGroup.load (   self,
  slm,
  scalar 
)

Loads neuron group.

Parameters
slmSharedLibraryModel instance for acccessing variables
scalarString specifying "scalar" type

◆ reinitialise() [1/2]

def pygenn.genn_groups.NeuronGroup.reinitialise (   self,
  slm,
  scalar 
)

Reinitialise neuron group.

Parameters
slmSharedLibraryModel instance for acccessing variables
scalarString specifying "scalar" type

◆ reinitialise() [2/2]

def pygenn.genn_groups.NeuronGroup.reinitialise (   self,
  slm,
  scalar 
)

Reinitialise neuron group.

Parameters
slmSharedLibraryModel instance for acccessing variables
scalarString specifying "scalar" type

◆ set_neuron() [1/2]

def pygenn.genn_groups.NeuronGroup.set_neuron (   self,
  model,
  param_space,
  var_space 
)

Set neuron, its parameters and initial variables.

Parameters
modeltype as string of intance of the model
param_spacedict with model parameters
var_spacedict with model variables

◆ set_neuron() [2/2]

def pygenn.genn_groups.NeuronGroup.set_neuron (   self,
  model,
  param_space,
  var_space 
)

Set neuron, its parameters and initial variables.

Parameters
modeltype as string of intance of the model
param_spacedict with model parameters
var_spacedict with model variables

◆ size() [1/2]

def pygenn.genn_groups.NeuronGroup.size (   self)

◆ size() [2/2]

def pygenn.genn_groups.NeuronGroup.size (   self)

Member Data Documentation

◆ is_spike_source_array

pygenn.genn_groups.NeuronGroup.is_spike_source_array

◆ neuron

pygenn.genn_groups.NeuronGroup.neuron

◆ pop

pygenn.genn_groups.NeuronGroup.pop

◆ spike_count

pygenn.genn_groups.NeuronGroup.spike_count

◆ spike_que_ptr

pygenn.genn_groups.NeuronGroup.spike_que_ptr

◆ spikes

pygenn.genn_groups.NeuronGroup.spikes

◆ type

pygenn.genn_groups.NeuronGroup.type

The documentation for this class was generated from the following file: