Check consistency of units selection for NEURON and CoreNEURON.#793
Merged
Conversation
pramodk
approved these changes
Nov 4, 2020
pramodk
left a comment
Member
There was a problem hiding this comment.
Apart from one minor comment, this looks ok to me.
Comment on lines
+27
to
+28
| print("ut.ghk=%s h.ghk=%s" % (str(ut.ghk), str(ghk_std))) | ||
| print("ut.erev=%s h.nernst=%s" % (str(ut.erev), str(erev_std))) |
Member
There was a problem hiding this comment.
should be remove these extra print statements?
Comment on lines
+35
to
+36
| print("ut.ghk=%s h.ghk=%s" % (str(ut.ghk), str(ghk_std))) | ||
| print("ut.erev=%s h.nernst=%s" % (str(ut.erev), str(erev_std))) |
Member
Author
|
Note that the units test work for modern units. They also work for legacy units but will need some changes that were introduced in PR #803 to avoid For this a suitable configuration involves |
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.
Companion to BlueBrain/CoreNeuron#408 and BlueBrain/mod2c#53
Partially responds to #521
Adds a test asserting that nernst, ghk, and gasconstant calculations are the same between NEURON and CoreNEURON and mod2c.
Note that test/coreneuron/test_units.py for default
-DCORENRN_ENABLE_LEGACY_UNITS=OFFprintsBut with
-DCORENRN_ENABLE_LEGACY_UNITS=OFF