GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
pygenn.genn_groups.CurrentSource Class Reference

Class representing a current injection into a group of neurons. More...

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

Public Member Functions

def __init__ (self, name, model)
 Init CurrentSource. More...
 
def size (self)
 Number of neuron in the injected population. More...
 
def size (self, _)
 
def set_current_source_model (self, model, param_space, var_space)
 Set current source model, its parameters and initial variables. More...
 
def add_to (self, pop)
 Attach this CurrentSource to NeuronGroup and add it to the pygenn.genn_model.GeNNModel. More...
 
def load (self)
 
def load_init_egps (self)
 
def unload (self)
 
def reinitialise (self)
 Reinitialise current source. More...
 
- Public Member Functions inherited from pygenn.genn_groups.Group
def __init__ (self, name, model)
 Init Group. More...
 
def set_var (self, var_name, values)
 Set values for a Variable. More...
 
def add_extra_global_param (self, param_name, param_values)
 Set extra global parameter. More...
 
def set_extra_global_param (self, param_name, param_values)
 Set extra global parameter. More...
 
def pull_state_from_device (self)
 Wrapper around GeNNModel.pull_state_from_device. More...
 
def pull_var_from_device (self, var_name)
 Wrapper around GeNNModel.pull_var_from_device. More...
 
def pull_extra_global_param_from_device (self, egp_name, size=None)
 Wrapper around GeNNModel.pull_extra_global_param_from_device. More...
 
def push_state_to_device (self)
 Wrapper around GeNNModel.push_state_to_device. More...
 
def push_var_to_device (self, var_name)
 Wrapper around GeNNModel.push_var_to_device. More...
 
def push_extra_global_param_to_device (self, egp_name, size=None)
 Wrapper around GeNNModel.push_extra_global_param_to_device. More...
 

Public Attributes

 current_source_model
 
 target_pop
 
 pop
 
- Public Attributes inherited from pygenn.genn_groups.Group
 name
 
 vars
 
 extra_global_params
 

Detailed Description

Class representing a current injection into a group of neurons.

Constructor & Destructor Documentation

◆ __init__()

def pygenn.genn_groups.CurrentSource.__init__ (   self,
  name,
  model 
)

Init CurrentSource.

Parameters
namestring name of the current source
modelpygenn.genn_model.GeNNModel this current source is part of

Member Function Documentation

◆ add_to()

def pygenn.genn_groups.CurrentSource.add_to (   self,
  pop 
)

Attach this CurrentSource to NeuronGroup and add it to the pygenn.genn_model.GeNNModel.

Parameters
popinstance of NeuronGroup into which this CurrentSource should be injected

◆ load()

def pygenn.genn_groups.CurrentSource.load (   self)

◆ load_init_egps()

def pygenn.genn_groups.CurrentSource.load_init_egps (   self)

◆ reinitialise()

def pygenn.genn_groups.CurrentSource.reinitialise (   self)

Reinitialise current source.

◆ set_current_source_model()

def pygenn.genn_groups.CurrentSource.set_current_source_model (   self,
  model,
  param_space,
  var_space 
)

Set current source model, 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.CurrentSource.size (   self)

Number of neuron in the injected population.

◆ size() [2/2]

def pygenn.genn_groups.CurrentSource.size (   self,
  _ 
)

◆ unload()

def pygenn.genn_groups.CurrentSource.unload (   self)

Member Data Documentation

◆ current_source_model

pygenn.genn_groups.CurrentSource.current_source_model

◆ pop

pygenn.genn_groups.CurrentSource.pop

◆ target_pop

pygenn.genn_groups.CurrentSource.target_pop

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