-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replay with NetCons in CoreNEURON as in NEURON (#173)
## Context Currently Neurodamus uses different spike replay processes for NEURON and CoreNEURON: - For NEURON, it creates NetCons between a Vectim and the post synaptic object - For CoreNeuron, it writes the spikes into a .dat file and passes it to CoreNEURON via "–pattern" CLI h For the feature of running CoreNEURON in memory, we need to unify the synapse replay for both simulators. This PR makes CoreNEURON to replay as NEURON, using NetCons and VecStim. NetCons should be transferable between Neuron and CoreNEURON. ## Scope - In `node.py`, remove `_coreneuron_replay_append` for writing out replay data file. Call the same replay function for CoreNEURON. - In `connection_manager.py`, no `attach_src` for coreneuron virtual source. `replay_mode` from ReplayMode.NONE -> ReplayMode.AS_REQUIRED for coreneuron - In `neuromodulation_manager.py`, similar changes ## Testing Current tests ## Review * [x] PR description is complete * [x] Coding style (imports, function length, New functions, classes or files) are good * [x] Unit/Scientific test added * [ ] Updated Readme, in-code, developer documentation
- Loading branch information
Showing
3 changed files
with
6 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters