Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Conversation

@sergiorg-hpc
Copy link
Contributor

@sergiorg-hpc sergiorg-hpc commented Nov 11, 2020

This commit adds support to enable reports for both a Target Section, or a Target Compartment with a Section inside. The behaviour is the same as in NEURON, providing the middle value in the first case, while providing all the values in the second case with Compartment.

To summarize the changes, the solution extends the purpose of one boolean in the report.conf file to encode new types of targets, such as axon, axonComp (for Compartments), and so on. This guarantees file compatibility with previous versions of CoreNEURON. The new encoded type is retrieved as an enum class and used to determine the type of report.

More information, including instructions on how to request the reports, can be found in the ticket:
https://bbpteam.epfl.ch/project/issues/browse/CNEUR-362?focusedCommentId=131257&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-131257

CI_BRANCHES:NEURON_BRANCH=master

@bbpbuildbot
Copy link
Collaborator

Can one of the admins verify this patch?

2 similar comments
@bbpbuildbot
Copy link
Collaborator

Can one of the admins verify this patch?

@bbpbuildbot
Copy link
Collaborator

Can one of the admins verify this patch?

@pramodk pramodk closed this Nov 11, 2020
@pramodk pramodk reopened this Nov 11, 2020
@pramodk
Copy link
Collaborator

pramodk commented Nov 11, 2020

Can one of the admins verify this patch?

I added sergiorg-hpc username to CI plans so that we won't have above message and CI will trigger all build plans.

Copy link
Collaborator

@pramodk pramodk left a comment

Choose a reason for hiding this comment

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

some minor comments/feedback.

@sergiorg-hpc
Copy link
Contributor Author

@jorblancoa and I have introduced several changes that addresses the suggestions of the review, thank you so much for the insight!

To clarify, we have tested again generating all the reports on a small test case, and compared the result with NEURON. This is just to confirm that the latest changes didn't introduce any errors.

@sergiorg-hpc
Copy link
Contributor Author

sergiorg-hpc commented Nov 17, 2020

Important: The CI is not passing because of the NEURON version issue (i.e., the sandbox/srivas/report_sections branch was updated recently to master). However, we relaunched the CI from the blueconfigs below and it works perfectly fine:

https://bbpcode.epfl.ch/ci/blue/organizations/jenkins/hpc.SimulationStack/detail/hpc.SimulationStack/2687/pipeline
https://bbpcode.epfl.ch/code/#/c/51354/

Copy link
Collaborator

@pramodk pramodk left a comment

Choose a reason for hiding this comment

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

2 minor comments otherwise LGTM

sergiorg-hpc and others added 4 commits November 17, 2020 16:48
Co-authored-by: Pramod Kumbhar <pramod.kumbhar@epfl.ch>
Co-authored-by: Alexandru Săvulescu <46521150+alexsavulescu@users.noreply.github.com>
Co-authored-by: Alexandru Săvulescu <46521150+alexsavulescu@users.noreply.github.com>
Copy link
Contributor

@alexsavulescu alexsavulescu left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Alexandru Săvulescu <46521150+alexsavulescu@users.noreply.github.com>
sergiorg-hpc and others added 2 commits November 18, 2020 09:28
Co-authored-by: Alexandru Săvulescu <alexandru.savulescu@epfl.ch>
NEURON_BRANCH=master
@iomaganaris
Copy link
Contributor

please retest

@pramodk
Copy link
Collaborator

pramodk commented Nov 18, 2020

So the conclusion is NEURON_BRANCH is somehow not working in this case?

@iomaganaris
Copy link
Contributor

iomaganaris commented Nov 19, 2020

So the conclusion is NEURON_BRANCH is somehow not working in this case?

Yes, there is some issue with the multiline description and the way the NEURON_BRANCH is filtered in the CI. I opened a PR in the blueconfigs repo to address the issue. It should be finished today
This PR is also tested in https://bbpcode.epfl.ch/code/#/c/51354/ with the Simulation Stack

@iomaganaris
Copy link
Contributor

please retest

1 similar comment
@sergiorg-hpc
Copy link
Contributor Author

please retest

@sergiorg-hpc
Copy link
Contributor Author

Hi there!

Thanks to @iomaganaris' great work, we have the CI back on track and now it can be confirmed that the PR changes passes it. Nonetheless, the following PR is the only one that evaluates the support for Section targets inside CoreNEURON:
https://bbpcode.epfl.ch/code/#/c/51354

Is there any additional changes you would like to integrate, or can we merge this already? If so, can someone approve the PR, please?

@alexsavulescu alexsavulescu merged commit 9dfaabb into master Nov 19, 2020
@sergiorg-hpc
Copy link
Contributor Author

Thank you everyone for the help and insight!

@sergiorg-hpc sergiorg-hpc deleted the sandbox/srivas/report_sections branch November 19, 2020 15:01
pramodk pushed a commit to neuronsimulator/nrn that referenced this pull request Nov 2, 2022
* Adds support for Axon, Dendrite, and Apical sections in reports

* Prevents to generate an empty list when the section is empty

* Adds support for Section in a Compartment

* Introduces suggestions by code review in PR

* Updates description of the enum

Co-authored-by: Pramod Kumbhar <pramod.kumbhar@epfl.ch>

* Adds an error when the Section type is unknown

Co-authored-by: Alexandru Săvulescu <46521150+alexsavulescu@users.noreply.github.com>

* Adds ref to the section_type_str

Co-authored-by: Alexandru Săvulescu <46521150+alexsavulescu@users.noreply.github.com>

* Adds an error when the target type is unknown

* Switches abort() for nrn_abort() in the configuration parser

Co-authored-by: Alexandru Săvulescu <46521150+alexsavulescu@users.noreply.github.com>

* Switched assert() to nrn_assert()

Co-authored-by: Alexandru Săvulescu <alexandru.savulescu@epfl.ch>

* Extends the previous commit

NEURON_BRANCH=master

Co-authored-by: Pramod Kumbhar <pramod.s.kumbhar@gmail.com>
Co-authored-by: Pramod Kumbhar <pramod.kumbhar@epfl.ch>
Co-authored-by: Alexandru Săvulescu <46521150+alexsavulescu@users.noreply.github.com>
Co-authored-by: Alexandru Săvulescu <alexandru.savulescu@epfl.ch>

CoreNEURON Repo SHA: BlueBrain/CoreNeuron@9dfaabb
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants