Skip to content

add a wrapper around Datum#2022

Merged
alexsavulescu merged 14 commits into
masterfrom
hoist/datum
Nov 7, 2022
Merged

add a wrapper around Datum#2022
alexsavulescu merged 14 commits into
masterfrom
hoist/datum

Conversation

@alexsavulescu

Copy link
Copy Markdown
Member

@codecov-commenter

codecov-commenter commented Oct 12, 2022

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.83094% with 139 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.85%. Comparing base (67e5614) to head (df6bf27).
⚠️ Report is 2846 commits behind head on master.

Files with missing lines Patch % Lines
src/nrniv/kschan.cpp 22.41% 45 Missing ⚠️
src/nrnoc/secref.cpp 0.00% 16 Missing ⚠️
src/nrnoc/cabcode.cpp 84.33% 13 Missing ⚠️
src/nrnpython/nrnpy_hoc.cpp 48.00% 13 Missing ⚠️
src/nrncvode/netcvode.cpp 92.98% 8 Missing ⚠️
src/nrniv/kssingle.cpp 0.00% 7 Missing ⚠️
src/nrnpython/nrnpy_nrn.cpp 80.55% 7 Missing ⚠️
src/nrniv/bbsavestate.cpp 77.77% 6 Missing ⚠️
src/ivoc/datapath.cpp 66.66% 5 Missing ⚠️
src/nrniv/nrnmenu.cpp 20.00% 4 Missing ⚠️
... and 7 more
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2022   +/-   ##
=======================================
  Coverage   48.85%   48.85%           
=======================================
  Files         518      521    +3     
  Lines      116025   116002   -23     
=======================================
- Hits        56687    56676   -11     
+ Misses      59338    59326   -12     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@azure-pipelines

Copy link
Copy Markdown

✔️ 5816600bd6478c337dca8f0aa08c9c5a5442b3ca -> Azure artifacts URL

@azure-pipelines

Copy link
Copy Markdown

✔️ 637649f33eaf5a20fb055f0d7314dd5b02460f5a -> Azure artifacts URL

@alexsavulescu alexsavulescu marked this pull request as draft October 13, 2022 11:19
@azure-pipelines

Copy link
Copy Markdown

✔️ 04361e6cf7fe2ef164a5cfdf5b886ade164c3f6a -> Azure artifacts URL

@azure-pipelines

Copy link
Copy Markdown

✔️ 2de0c02b4ba122561448032770ac78f0f2be1d90 -> Azure artifacts URL

@olupton olupton left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💪 @alexsavulescu, team 🏗️!

Comment thread src/nrncvode/cvodeobj.h Outdated
Comment thread src/nrncvode/netcvode.cpp Outdated
Comment thread src/nrncvode/netcvode.cpp Outdated
Comment thread src/nrncvode/netcvode.cpp Outdated
Comment thread src/nrnoc/fadvance.cpp Outdated
Comment thread src/oc/hocdec.h Outdated
Comment thread src/oc/hocdec.h Outdated
Comment thread src/oc/hocdec.h Outdated
Comment thread src/oc/hocdec.h Outdated
Comment thread src/oc/hocdec.h Outdated
@azure-pipelines

Copy link
Copy Markdown

✔️ 3baabcf2544362cb62357b71e4a67d03357a3b99 -> Azure artifacts URL

@alexsavulescu

Copy link
Copy Markdown
Member Author

@azure-pipelines

Copy link
Copy Markdown

✔️ cbc36583433016887304c4115340dfd43faaf5ff -> Azure artifacts URL

@alexsavulescu

Copy link
Copy Markdown
Member Author

heavy_check_mark cbc3658 -> Azure artifacts URL

https://github.com/neuronsimulator/nrn-modeldb-ci/actions/runs/3266012998

All looks good except this:
image

Also need to updated BBP models

@azure-pipelines

Copy link
Copy Markdown

✔️ b51ec82 -> Azure artifacts URL

@alexsavulescu

Copy link
Copy Markdown
Member Author

@azure-pipelines

Copy link
Copy Markdown

✔️ 458670f -> Azure artifacts URL

@azure-pipelines

Copy link
Copy Markdown

✔️ af3ee311f01e1a809bb93ec3df8154a3b6ea2c67 -> Azure artifacts URL

@olupton

olupton commented Nov 1, 2022

Copy link
Copy Markdown
Collaborator

@azure-pipelines

Copy link
Copy Markdown

✔️ ea0f3ef696623dc79a350254fecec56962bee490 -> Azure artifacts URL

@olupton

olupton commented Nov 1, 2022

Copy link
Copy Markdown
Collaborator

@olupton

olupton commented Nov 1, 2022

Copy link
Copy Markdown
Collaborator

✔️ ea0f3ef -> Azure artifacts URL

https://github.com/neuronsimulator/nrn-modeldb-ci/actions/runs/3369555379

No new failures in this one (reference was neuron-nightly)

@olupton

olupton commented Nov 1, 2022

Copy link
Copy Markdown
Collaborator

@ramcdougal

Copy link
Copy Markdown
Member

In this wrapped context, is there still a way for someone loading NEURON as a dynamically loaded C++ library to easily access values in a datum?

@olupton

olupton commented Nov 2, 2022

Copy link
Copy Markdown
Collaborator

In this wrapped context, is there still a way for someone loading NEURON as a dynamically loaded C++ library to easily access values in a datum?

You can still ask for a contained value of a specific type with datum.get<T>() or datum.literal_value<T>(). The member names like _pval that implied the types T are gone.

The distinction between get and literal_value is anticipating changes in the other data structures work, where the Datum type becomes more sophisticated and there is a distinction between values it can provide (e.g. it can yield a double* from an internal representation that is not a literal double*) and values it literally contains (e.g. it can wrap an int, so it's possible to return an int& from literal_value<int>).

@azure-pipelines

Copy link
Copy Markdown

✔️ fec030791b498cea7a5f19c58ad86ac94a606fb0 -> Azure artifacts URL

@olupton

olupton commented Nov 3, 2022

Copy link
Copy Markdown
Collaborator

Launched https://bbpgitlab.epfl.ch/hpc/coreneuron/-/pipelines/82370 to test this with internal BBP fixes.

@azure-pipelines

Copy link
Copy Markdown

✔️ aac890d -> Azure artifacts URL

@olupton

olupton commented Nov 4, 2022

Copy link
Copy Markdown
Collaborator

@alexsavulescu

Copy link
Copy Markdown
Member Author

@alexsavulescu alexsavulescu marked this pull request as ready for review November 4, 2022 13:22
@bbpbuildbot

Copy link
Copy Markdown
Collaborator

@olupton olupton left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think we have picked out a bit more than just the Datum changes, but I tend to think it's not worth fine-tuning and that this can just be merged.

Comment thread src/nrncvode/netcvode.cpp Outdated
Comment thread src/nrncvode/netcvode.cpp Outdated
Comment thread src/nrncvode/netcvode.cpp Outdated
Comment thread src/nrniv/nrncore_write/callbacks/nrncore_callbacks.cpp
@bbpbuildbot

Copy link
Copy Markdown
Collaborator

@bbpbuildbot

Copy link
Copy Markdown
Collaborator

@azure-pipelines

Copy link
Copy Markdown

✔️ 647174f -> Azure artifacts URL

@azure-pipelines

Copy link
Copy Markdown

✔️ a140267 -> Azure artifacts URL

@bbpbuildbot

Copy link
Copy Markdown
Collaborator

@bbpbuildbot

Copy link
Copy Markdown
Collaborator

Logfiles from GitLab pipeline #82810 (:no_entry:) have been uploaded here!

Status and direct links:

@azure-pipelines

Copy link
Copy Markdown

✔️ 9e98885 -> Azure artifacts URL

@bbpbuildbot

Copy link
Copy Markdown
Collaborator

@azure-pipelines

Copy link
Copy Markdown

✔️ df6bf27 -> Azure artifacts URL

@alexsavulescu alexsavulescu merged commit 44480b7 into master Nov 7, 2022
@alexsavulescu alexsavulescu deleted the hoist/datum branch November 7, 2022 12:50
WeinaJi pushed a commit to BlueBrain/neurodamus that referenced this pull request May 31, 2023
## Context

NRN-111 

## Scope

NEURON Datum will become a modern structure in 9.0.0.
This MR prepares MOD files for it (neuronsimulator/nrn#2022)
--
NEURODAMUS-CORE Repo SHA: hpc/sim/neurodamus-core@9b0cb6672aebf527f1f88dfb70ea152fb4d289a8
WeinaJi pushed a commit to BlueBrain/neurodamus that referenced this pull request May 31, 2023
## Context

NRN-111: add support for incoming Datum changes in 9.0.0

## Scope
NEURON Datum will become a modern structure in 9.0.0. This MR prepares MOD files for it (neuronsimulator/nrn#2022)
ferdonline pushed a commit to BlueBrain/neurodamus-models that referenced this pull request Feb 14, 2024
## Context

NRN-111 

## Scope

NEURON Datum will become a modern structure in 9.0.0.
This MR prepares MOD files for it (neuronsimulator/nrn#2022)
WeinaJi pushed a commit to BlueBrain/neurodamus that referenced this pull request Oct 14, 2024
## Context

NRN-111 

## Scope

NEURON Datum will become a modern structure in 9.0.0.
This MR prepares MOD files for it (neuronsimulator/nrn#2022)
--
NEURODAMUS-CORE Repo SHA: hpc/sim/neurodamus-core@9b0cb6672aebf527f1f88dfb70ea152fb4d289a8
WeinaJi pushed a commit to BlueBrain/neurodamus that referenced this pull request Oct 14, 2024
## Context

NRN-111: add support for incoming Datum changes in 9.0.0

## Scope
NEURON Datum will become a modern structure in 9.0.0. This MR prepares MOD files for it (neuronsimulator/nrn#2022)
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.

5 participants