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

Create a pointer from Prop to Node. #2768

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Create a pointer from Prop to Node. #2768

merged 1 commit into from
Sep 3, 2024

Conversation

1uc
Copy link
Collaborator

@1uc 1uc commented Mar 4, 2024

When generating code to call processes from HOC or Python one difficulty can be obtaining the voltage. The voltage is associated with the Node. In the generated code we only have access to the Prop.

We don't have access to the voltage via Memb_list::nodeindices. When generating code for NRN with NMODL, we don't populate what CoreNEURON calls v_unused.

@1uc
Copy link
Collaborator Author

1uc commented Mar 4, 2024

@nrnhines I believe we've discussed this issue in a different context. Would something like this make sense?

Copy link

✔️ 09b49db -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

@1uc 1uc closed this Mar 5, 2024
@1uc 1uc reopened this Mar 5, 2024
Copy link

sonarcloud bot commented Mar 5, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@nrnhines
Copy link
Member

nrnhines commented Mar 5, 2024

@nrnhines I believe we've discussed this issue in a different context. Would something like this make sense?

I've also experienced this issue and am much in favor of this fix.

Copy link

✔️ 09b49db -> Azure artifacts URL

@1uc
Copy link
Collaborator Author

1uc commented Mar 5, 2024

Thank you! If nobody else needs it right away, I'd propose I first implement the code in NMODL that needs this. Then when that's ready for merging we also merge this first.

Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 67.26%. Comparing base (52f8195) to head (20e5c17).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/nrnoc/membfunc.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2768      +/-   ##
==========================================
+ Coverage   67.25%   67.26%   +0.01%     
==========================================
  Files         571      571              
  Lines      104859   104860       +1     
==========================================
+ Hits        70523    70535      +12     
+ Misses      34336    34325      -11     

☔ 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/prop2node branch 2 times, most recently from 241b493 to 248de7a Compare August 30, 2024 06:54
Copy link

✔️ 248de7a -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

When generating code to call processes from HOC or Python one difficulty
can be obtaining the voltage. The voltage is associated with the Node.
In the generated code we only have access to the Prop.

We don't have access to the voltage via `Memb_list::nodeindices`. When
generating code for NRN with NMODL, we don't populate what CoreNEURON
calls `v_unused`.
Copy link

✔️ 20e5c17 -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

@1uc 1uc closed this Sep 2, 2024
@1uc 1uc reopened this Sep 2, 2024
@1uc 1uc marked this pull request as ready for review September 2, 2024 18:05
Copy link

sonarcloud bot commented Sep 2, 2024

Copy link

✔️ 20e5c17 -> Azure artifacts URL

@1uc
Copy link
Collaborator Author

1uc commented Sep 3, 2024

@nrnhines I'll merge this now, because we use it in #3066 to fix issue #3059. In NMODL I use it to solve similar issues:
BlueBrain/nmodl#1414

@1uc 1uc merged commit 6704244 into master Sep 3, 2024
60 checks passed
@1uc 1uc deleted the 1uc/prop2node branch September 3, 2024 08:36
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.

4 participants