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

Conversation

@iomaganaris
Copy link
Contributor

@iomaganaris iomaganaris commented Feb 17, 2022

Description

Different sections might have different iontypes as for example in the M1 NetPyNE simulation. Instead of reading only the iontype of the first section of each mechanism, calculate each one based on its iontype.

How to test this?

I was able to reproduce this issue only with the M1 simulation and when setting cfg.singleCellPops = 1.
This option Creates pops with 1 single cell (to debug) according to the documentation.
Using this branch I managed to get the same spikes between CoreNEURON and NEURON on CPU with debug builds enabled and using direct mode.

With this PR M1 and S1 simulations (reduced versions with cfg.singleCellPops = 1) generate the same spikes in CPU with debug and release builds on offline and online CoreNEURON execution.

Related neuron part https://github.com/neuronsimulator/nrn/blob/9624c96e17b6b676245582f66f83c64f11876368/src/nrnoc/eion.cpp#L356

M1 and S1 results validation from the large sims with the full circuit are WIP.

@iomaganaris iomaganaris requested a review from pramodk February 17, 2022 14:10
@iomaganaris iomaganaris added frontiers-paper-2021 bug netpyne Issues related to NetPyNE simulations labels Feb 17, 2022
@codecov-commenter
Copy link

codecov-commenter commented Feb 17, 2022

Codecov Report

Merging #775 (8ce46a7) into master (c1093ba) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #775   +/-   ##
=======================================
  Coverage   56.00%   56.00%           
=======================================
  Files         108      108           
  Lines        8994     8994           
=======================================
  Hits         5037     5037           
  Misses       3957     3957           
Impacted Files Coverage Δ
coreneuron/mechanism/eion.cpp 57.85% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c1093ba...8ce46a7. Read the comment docs.

@iomaganaris iomaganaris changed the title Magkanar/fix pdata Fix pdata claculation Feb 17, 2022
@iomaganaris iomaganaris changed the title Fix pdata claculation Fix pdata calculation Feb 17, 2022
@iomaganaris iomaganaris merged commit 43e881e into master Feb 23, 2022
@iomaganaris iomaganaris deleted the magkanar/fix_pdata branch February 23, 2022 12:55
pramodk pushed a commit to neuronsimulator/nrn that referenced this pull request Nov 2, 2022
* Read iontype for every instance because it might be different for different instances

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

Labels

bug frontiers-paper-2021 netpyne Issues related to NetPyNE simulations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants