Skip to content
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

Merged
merged 8 commits into from
Sep 9, 2024
Merged

Get voltage via prop->node. #1414

merged 8 commits into from
Sep 9, 2024

Conversation

1uc
Copy link
Collaborator

@1uc 1uc commented Aug 28, 2024

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.

Copy link

codecov bot commented Aug 28, 2024

Codecov Report

Attention: Patch coverage is 71.42857% with 10 lines in your changes missing coverage. Please review.

Project coverage is 86.55%. Comparing base (3eab851) to head (2467e24).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/codegen/codegen_neuron_cpp_visitor.cpp 69.69% 10 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@bbpbuildbot

This comment has been minimized.

@1uc 1uc force-pushed the 1uc/uniform-node-data branch from bc538a6 to 2467e24 Compare August 30, 2024 06:57
@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@1uc 1uc force-pushed the 1uc/uniform-node-data branch from 1eb4178 to 1bfa714 Compare September 4, 2024 11:29
bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Sep 4, 2024
@bbpbuildbot

This comment has been minimized.

@1uc 1uc marked this pull request as ready for review September 4, 2024 12:02
@1uc 1uc force-pushed the 1uc/uniform-node-data branch from 1bfa714 to df3caa2 Compare September 4, 2024 12:04
bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Sep 4, 2024
@bbpbuildbot

This comment has been minimized.

1uc added 7 commits September 4, 2024 15:21
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`.
@1uc 1uc force-pushed the 1uc/uniform-node-data branch from df3caa2 to bcef74f Compare September 4, 2024 13:21
bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Sep 4, 2024
@bbpbuildbot
Copy link
Collaborator

Logfiles from GitLab pipeline #230035 (:white_check_mark:) have been uploaded here!

Status and direct links:

@1uc 1uc merged commit 1c4cb6c into master Sep 9, 2024
21 checks passed
@1uc 1uc deleted the 1uc/uniform-node-data branch September 9, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants