Repository navigation
Fix the IF_cond_exp_gsfa_grr model on all backends - #862
Merged
Merged
Conversation
`g_r`/`g_s` were unknown on NEST, not recordable and with ignored initial values on NEURON and Arbor, and in µS on Brian2, whose reset also added q_r/q_s scaled by 1e9. The Brian2 version also used alpha synapses and froze g_r/g_s during refractoriness. The adaptation scenario test therefore now runs on NEST and Brian2 too; the second spike time agrees to within 0.02 ms across backends.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, the
IF_cond_exp_gsfa_grris broken in several ways:g_randg_son the PyNN side, and scales them wrongly (PyNN's default is µS for conductances, but for some reason this model uses nS in most places, µS in others),g_randg_sstate variables cannot be recorded (NEURON only), and their initial values are ignored, since the mechanisms'INITIALblocks set them to zero.g_randg_sare reported in µS instead of nS.q_randq_sscaled by 1e9.v_resetafterwards removes the conductance increments from the reset.g_randg_sstay constant during the refractory period, whereas they decay on the other backends.Here, we make all four backends follow the standard model, which declares
g_r,g_s,q_rrandq_sfain nS:g_s_init/g_r_initparameters, and NEURON can now recordg_sandg_r.v_thresh,v_reset,q_randq_sare per-cell variables used by name in the threshold and reset code, so they can differ between cells and be changed between runs.g_r/g_sdecay during the refractory period.Note that nS is an exception to the PyNN convention of µS for conductances. Changing this would be a breaking API change, so it is left for a separate PR.
test_IF_cond_exp_gsfa_grr_adaptationnow runs on all four backends, not just NEURON and Arbor, and also checks the time of the second spike, the first one affected byg_sandg_r. The backends agree to within 0.02 ms. The new testtest_IF_cond_exp_gsfa_grr_initial_conductanceschecks, on all four backends, the units, initial values and decay ofg_sandg_r.