GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
pygenn.model_preprocessor.Variable Class Reference

Class holding information about GeNN variables. More...

Inheritance diagram for pygenn.model_preprocessor.Variable:

Public Member Functions

def __init__ (self, variable_name, variable_type, values, group)
 Init Variable. More...
 
def set_extra_global_init_param (self, param_name, param_values)
 Set values of extra global parameter associated with variable initialisation snippet. More...
 
def set_values (self, values)
 Set Variable's values. More...
 

Public Attributes

 name
 
 type
 
 group
 
 view
 
 needs_allocation
 
 init_required
 
 init_val
 
 extra_global_params
 
 values
 

Detailed Description

Class holding information about GeNN variables.

Constructor & Destructor Documentation

◆ __init__()

def pygenn.model_preprocessor.Variable.__init__ (   self,
  variable_name,
  variable_type,
  values,
  group 
)

Init Variable.

Parameters
variable_namestring name of the variable
variable_typestring type of the variable
valuesiterable, single value or VarInit instance
grouppygenn.genn_groups.Group this variable is associated with

Member Function Documentation

◆ set_extra_global_init_param()

def pygenn.model_preprocessor.Variable.set_extra_global_init_param (   self,
  param_name,
  param_values 
)

Set values of extra global parameter associated with variable initialisation snippet.

Args param_name string, name of parameter param_values iterable or single value

◆ set_values()

def pygenn.model_preprocessor.Variable.set_values (   self,
  values 
)

Set Variable's values.

Parameters
valuesiterable, single value or VarInit instance

Member Data Documentation

◆ extra_global_params

pygenn.model_preprocessor.Variable.extra_global_params

◆ group

pygenn.model_preprocessor.Variable.group

◆ init_required

pygenn.model_preprocessor.Variable.init_required

◆ init_val

pygenn.model_preprocessor.Variable.init_val

◆ name

pygenn.model_preprocessor.Variable.name

◆ needs_allocation

pygenn.model_preprocessor.Variable.needs_allocation

◆ type

pygenn.model_preprocessor.Variable.type

◆ values

pygenn.model_preprocessor.Variable.values

◆ view

pygenn.model_preprocessor.Variable.view

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