-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for NEURON {RANDOM ranvar1, ranvar2, ...} statement. #1125
Conversation
This comment is obsolete. nrn/netstim.cpp has been removed as the translation of RANDOM variables with nmodl is complete. nrn/netstim.cpp is temporary and has been manually modified from the nmodl generated cpp file. The diff is below and
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
d4efc03
to
c89dcf1
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
- replace possibly_rename() with lambda as it's used in one place - remove extdef_rand.h - move is_random_function from symtab/symbol_properties.hpp to visitor_utils.hpp - add parsing test in test/unit/utils/nmodl_constructs.cpp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nrnhines: tomorrow I am going to work a bit on src/visitors/semantic_analysis_visitor.*
and address Todo
about meaningful error
message.
This comment has been minimized.
This comment has been minimized.
- fix failing modtoken tests - add units for semantic analysis visitor of RANDOM - simplify the logic for semantic checks - remove unnecessary code
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1125 +/- ##
==========================================
- Coverage 88.18% 88.11% -0.08%
==========================================
Files 175 175
Lines 12411 12520 +109
==========================================
+ Hits 10945 11032 +87
- Misses 1466 1488 +22 ☔ View full report in Codecov by Sentry. |
This comment has been minimized.
This comment has been minimized.
Logfiles from GitLab pipeline #191849 (:white_check_mark:) have been uploaded here! Status and direct links: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - I have made the necessary changes directly.
…tatement (#1125) * Support for new RANDOM construct in NMODL, see neuronsimulator/nrn#2627 * Added necessary changes to the parser, visitors, symbol table and code generation * Added unit tests Co-authored-by: Pramod S Kumbhar <[email protected]>
Accepts the latest netcon.mod from neuronsimulator/nrn#2627. Some changes were picked from #581