-
Notifications
You must be signed in to change notification settings - Fork 15
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
Get voltage via prop->node
.
#1414
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1414 +/- ##
==========================================
- Coverage 86.59% 86.55% -0.04%
==========================================
Files 182 182
Lines 13552 13581 +29
==========================================
+ Hits 11735 11755 +20
- Misses 1817 1826 +9 ☔ View full report in Codecov by Sentry. |
This comment has been minimized.
This comment has been minimized.
bc538a6
to
2467e24
Compare
This comment has been minimized.
This comment has been minimized.
2467e24
to
7de2957
Compare
This comment has been minimized.
This comment has been minimized.
1eb4178
to
1bfa714
Compare
This comment has been minimized.
This comment has been minimized.
1bfa714
to
df3caa2
Compare
This comment has been minimized.
This comment has been minimized.
When calling functions directly, don't have access to the `NrnThread` and therefore can't get node properties, like the voltage from there. The solution is to create a link from the Prop to the Node. Then use that link to figure out the node properties. The trick to make the two cases uniform is the same as we use for instance data, we create pointers to array of length one (by taking the address of the element) and setting `_iml`/`id` to `0`.
df3caa2
to
bcef74f
Compare
Logfiles from GitLab pipeline #230035 (:white_check_mark:) have been uploaded here! Status and direct links: |
When calling functions directly, don't have access to the
NrnThread
and therefore can't get node properties, like the voltage from there.
The solution is to create a link from the Prop to the Node. Then use
that link to figure out the node properties.
The trick to make the two cases uniform is the same as we use for
instance data, we create pointers to array of length one (by taking the
address of the element) and setting
_iml
/id
to0
.