Skip to content

Bug fix: avoid coreneuron file mode to not use in-memory model copy#2767

Merged
pramodk merged 2 commits into
masterfrom
pramodk/filemode-fix
Mar 6, 2024
Merged

Bug fix: avoid coreneuron file mode to not use in-memory model copy#2767
pramodk merged 2 commits into
masterfrom
pramodk/filemode-fix

Conversation

@pramodk

@pramodk pramodk commented Mar 1, 2024

Copy link
Copy Markdown
Member
  • @WeinaJi pointed out that when filemode is set to True, coreneuron was still using "in memory mode" from neuron side.
  • This is because "file mode" also part of coreneuron "embeded mode" and we didn't distinguish file mode vs in memory mode in embeded node.
  • As part of this PR, we simply pass file mode flag to coreneuron so that we can decide if we should read model from file or memory.

- @WeinaJi pointed out that when filemode is set to True,
  coreneuron was still using "in memory mode" from neuron side.
- This is because "file mode" also part of coreneuron "embeded mode"
  and we didn't distinguish file mode vs in memory mode in embeded node.
- As part of this PR, we simply pass file mode flag to coreneuron
  so that we can decide if we should read model from file or memory.
@pramodk pramodk requested a review from nrnhines March 1, 2024 21:01
@azure-pipelines

Copy link
Copy Markdown

✔️ efade2b -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

Comment thread src/coreneuron/mechanism/mech/enginemech.cpp
@pramodk pramodk force-pushed the pramodk/filemode-fix branch from efade2b to 35dd4ec Compare March 5, 2024 23:13
@sonarqubecloud

sonarqubecloud Bot commented Mar 5, 2024

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

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

See analysis details on SonarCloud

@azure-pipelines

Copy link
Copy Markdown

✔️ 35dd4ec -> Azure artifacts URL

@codecov

codecov Bot commented Mar 6, 2024

Copy link
Copy Markdown

Codecov Report

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

Project coverage is 66.91%. Comparing base (2a68176) to head (35dd4ec).

Files Patch % Lines
src/nrniv/nrncore_write.cpp 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2767      +/-   ##
==========================================
- Coverage   66.92%   66.91%   -0.01%     
==========================================
  Files         560      560              
  Lines      104093   104087       -6     
==========================================
- Hits        69666    69655      -11     
- Misses      34427    34432       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bbpbuildbot

This comment has been minimized.

@pramodk pramodk merged commit 8afc9de into master Mar 6, 2024
@pramodk pramodk deleted the pramodk/filemode-fix branch March 6, 2024 06:13
1uc added a commit that referenced this pull request Mar 22, 2024
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