class pygenn::genn_groups::CurrentSource¶
Overview¶
Class representing a current injection into a group of neurons. More…
class CurrentSource: public pygenn::genn_groups::Group { public: // fields current_source_model; target_pop; pop; // methods def __init__(); def size(); def set_current_source_model(); 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 current injection into a group of neurons.
Methods¶
def __init__()
Init CurrentSource.
Parameters:
name | string name of the current source |
def size()
Number of neuron in the injected population.
def set_current_source_model()
Set curront source 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 add_to()
Inject this CurrentSource into population and add it to the GeNN NNmodel.
Parameters:
pop | instance of NeuronGroup into which this CurrentSource should be injected |
nn_model | GeNN NNmodel |
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 current source.
Parameters:
slm | SharedLibraryModel instance for acccessing variables |
scalar | String specifying “scalar” type |