class pygenn::genn_groups::NeuronGroup

Overview

Class representing a group of neurons. More…

class NeuronGroup: public pygenn::genn_groups::Group
{
public:
    // fields

     neuron;
     spikes;
     spike_count;
     spike_que_ptr;
     is_spike_source_array;
     type;
     pop;

    // methods

    def __init__();
    def current_spikes();
    def delay_slots();
    def size();
    def set_neuron();
    def add_to();
    def add_extra_global_param();
    def load();
    def reinitialise();
};

Inherited Members

public:
    // fields

     name;
     vars;
     extra_global_params;

    // methods

    def __init__();
    def set_var();

Detailed Documentation

Class representing a group of neurons.

Methods

def __init__()

Init NeuronGroup.

Parameters:

name string name of the group
def current_spikes()

Current spikes from GeNN.

def delay_slots()

Maximum delay steps needed for this group.

def set_neuron()

Set neuron, its parameters and initial variables.

Parameters:

model type as string of intance of the model
param_space dict with model parameters
var_space dict with model variables
def add_to()

Add this NeuronGroup to a model.

Parameters:

model_spec pygenn.genn_model.GeNNModel to add to
num_neurons int number of neurons
def add_extra_global_param()

Add extra global parameter.

Parameters:

param_name string with the name of the extra global parameter
param_values iterable or a single value
def load()

Loads neuron group.

Parameters:

slm SharedLibraryModel instance for acccessing variables
scalar String specifying “scalar” type
def reinitialise()

Reinitialise neuron group.

Parameters:

slm SharedLibraryModel instance for acccessing variables
scalar String specifying “scalar” type