Skip to content

Commit

Permalink
Merge pull request #642 from genn-team/genn_5_1_0
Browse files Browse the repository at this point in the history
GeNN 5.1.0
  • Loading branch information
neworderofjamie authored Nov 7, 2024
2 parents 9c6f6f6 + 817c664 commit 134575e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
15 changes: 11 additions & 4 deletions pygenn/genn_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1290,11 +1290,18 @@ def create_weight_update_model(
where, once again, ``inc`` is the amount to add to the postsynaptic neuron's ``inSyn`` variable and ``delay`` is the length of the dendritic delay in timesteps.
By implementing ``delay`` as a weight update model variable, heterogeneous synaptic delays can be implemented.
For an example, see WeightUpdateModels::StaticPulseDendriticDelay for a simple synapse update model with heterogeneous dendritic delays.
For an example, see :func:`.weight_update_models.StaticPulseDendriticDelay` for a simple synapse update model with heterogeneous dendritic delays.
These delays can also be used to provide delayed access to ``post_vars`` and ``post_neuron_var_refs`` using ``[]`` syntax. For example,
When using dendritic delays, the *maximum* dendritic delay for a synapse populations must be specified via the
:attr:`SynapseGroup.max_dendritic_delay_timesteps` property. One can also define synaptic effects that occur in the reverse direction,
i.e. terms that are added to a target variable in the _presynaptic_ neuron using the ``addToPre(inc)`` function. For example,
.. code-block:: python
pre_spike_syn_code="variable -= postVar[delay];"
where, ``variable`` is a per-synapse variable; ``postVar`` is either a postsynaptic variable or postsynaptic variable reference;
and ``delay`` is some sort of integer expression. When using dendritic delays, the *maximum* dendritic delay for a synapse populations
must be specified via the :attr:`SynapseGroup.max_dendritic_delay_timesteps` property. One can also define synaptic effects that
occur in the reverse direction, i.e. terms that are added to a target variable in the _presynaptic_ neuron using the ``addToPre(inc)`` function.
For example,
.. code-block:: python
Expand Down
8 changes: 8 additions & 0 deletions pygenn/src/docStrings.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@

static const char *__doc_CodeGenerator_BackendBase = R"doc()doc";

static const char *__doc_CodeGenerator_BackendBase_AtomicOperation = R"doc(What atomic operation is required)doc";

static const char *__doc_CodeGenerator_BackendBase_AtomicOperation_ADD = R"doc()doc";

static const char *__doc_CodeGenerator_BackendBase_AtomicOperation_OR = R"doc()doc";

static const char *__doc_CodeGenerator_BackendBase_BackendBase = R"doc()doc";

static const char *__doc_CodeGenerator_BackendBase_ReductionTarget = R"doc(Simple struct to hold reduction targets)doc";
Expand Down Expand Up @@ -279,6 +285,8 @@ static const char *__doc_CodeGenerator_BackendBase_genTimer = R"doc()doc";

static const char *__doc_CodeGenerator_BackendBase_genVariableInit = R"doc()doc";

static const char *__doc_CodeGenerator_BackendBase_getAtomicOperation = R"doc(Get suitable atomic *lhsPointer += rhsValue or *lhsPointer |= rhsValue style operation)doc";

static const char *__doc_CodeGenerator_BackendBase_getDeviceMemoryBytes = R"doc(How many bytes of memory does 'device' have)doc";

static const char *__doc_CodeGenerator_BackendBase_getFilesToCopy =
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.0.0
5.1.0

0 comments on commit 134575e

Please sign in to comment.