Skip to content
Snippets Groups Projects
Unverified Commit 3531f7ee authored by Nora Abi Akar's avatar Nora Abi Akar Committed by GitHub
Browse files

Add `post events` functionality to support models with STDP synapses (#1255)

* Added a `POST_EVENTS` procedure to nmodl, that takes an argument that represents the time since the last spike on the cell. In the event of multiple detectors on the cell, and multiple spikes on the detectors within the same integration period, all spikes will be processed by the synapse. Spikes are processed only once and then cleared.
* Added 3 vectors to the shared state required to dispatch post-events: `cv_to_cell` map, `time_since_spike` holding max(num_detectors) slots per cell, and `src_to_spike` mapping spike sources (detectors) to slots in `time_since_spike`.
* Renamed `vec_ci_` to `vec_di_` (to better reflect that it stands for **domain index**). Named the new `cv_to_cell` index as `vec_ci_` in the mechanisms.
* Fixed existing unit tests and added new tests for the new post-events functionality.

Fixes #1206
parent aa1b6f04
No related branches found
No related tags found
No related merge requests found
Showing
with 186 additions and 48 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment