class pygenn::genn_groups::SynapseGroup

Overview

Class representing synaptic connection between two groups of neurons. More…

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

     connections_set;
     w_update;
     postsyn;
     src;
     trg;
     psm_vars;
     pre_vars;
     post_vars;
     connectivity_initialiser;
     synapse_order;
     ind;
     row_lengths;
     pop;

    // methods

    def __init__();
    def num_synapses();
    def weight_update_var_size();
    def max_row_length();
    def set_psm_var();
    def set_pre_var();
    def set_post_var();
    def set_weight_update();
    def set_post_syn();
    def get_var_values();
    def is_connectivity_init_required();
    def matrix_type();
    def is_ragged();
    def is_bitmask();
    def is_dense();
    def has_individual_synapse_vars();
    def has_individual_postsynaptic_vars();
    def set_sparse_connections();
    def get_sparse_pre_inds();
    def get_sparse_post_inds();
    def set_connected_populations();
    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 synaptic connection between two groups of neurons.

Methods

def __init__()

Init SynapseGroup.

Parameters:

name string name of the group
def num_synapses()

Number of synapses in group.

def weight_update_var_size()

Size of each weight update variable.

def set_psm_var()

Set values for a postsynaptic model variable.

Parameters:

var_name string with the name of the postsynaptic model variable
values iterable or a single value
def set_pre_var()

Set values for a presynaptic variable.

Parameters:

var_name string with the name of the presynaptic variable
values iterable or a single value
def set_post_var()

Set values for a postsynaptic variable.

Parameters:

var_name string with the name of the presynaptic variable
values iterable or a single value
def set_weight_update()

Set weight update model, 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
pre_var_space dict with model presynaptic variables
post_var_space dict with model postsynaptic variables
def set_post_syn()

Set postsynaptic model, 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 matrix_type()

Type of the projection matrix.

def is_ragged()

Tests whether synaptic connectivity uses Ragged format.

def is_bitmask()

Tests whether synaptic connectivity uses Bitmask format.

def is_dense()

Tests whether synaptic connectivity uses dense format.

def has_individual_synapse_vars()

Tests whether synaptic connectivity has individual weights.

def has_individual_postsynaptic_vars()

Tests whether synaptic connectivity has individual postsynaptic model variables.

def set_sparse_connections()

Set ragged format connections between two groups of neurons.

Parameters:

pre_indices ndarray of presynaptic indices
post_indices ndarray of postsynaptic indices
def get_sparse_pre_inds()

Get presynaptic indices of synapse group connections.

Returns:

ndarray of presynaptic indices

def get_sparse_post_inds()

Get postsynaptic indices of synapse group connections.

Returns:

ndarrays of postsynaptic indices

def set_connected_populations()

Set two groups of neurons connected by this SynapseGroup.

Parameters:

source string name of the presynaptic neuron group
target string name of the postsynaptic neuron group
def add_to()

Add this SynapseGroup to the a model.

Parameters:

model_spec pygenn.genn_model.GeNNModel to add to
delay_steps number of axonal delay timesteps to simulate for this synapse group
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 reinitialise()

Reinitialise synapse group.

Parameters:

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