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

Ion related initial values set in the NEURON parser not passed to CoreNEURON #779

Open
@iomaganaris

Description

@iomaganaris

Some scripts in NEURON when instantiating the cells might define the initial value of ion variables like:

ko0_k_ion = 3.82   //mM
ki0_k_ion = 140    //mM

These variables (from my understanding) seem that when CoreNEURON gets executed in file mode (using its coredat files) are not passed to CoreNEURON to set them when it registers the ions in

void ion_reg(const char* name, double valence) {

The default values come from:
https://github.com/BlueBrain/CoreNeuron/blob/master/coreneuron/membrane_definitions.h
The ion registration and calculation is done correctly in direct mode, when CoreNEURON is launched from NEURON.

To Reproduce
I was only able to reproduce this with a NetPyNE closed source simulation. I can provide more details if needed.

Expected behavior
I suppose that those variables should be passed to the coredat files, so that they can be read by CoreNEURON?

Logs
NEURON values:

nrn_init_ion 15 conci 10.000000 conco 140.000000 charge 1.000000 celsius 34.000000
nrn_init_ion 16 conci 140.000000 conco 3.820000 charge 1.000000 celsius 34.000000
nrn_init_ion 25 conci 0.000050 conco 2.000000 charge 2.000000 celsius 34.000000
nrn_init_ion 49 conci 1.000000 conco 1.000000 charge 1.000000 celsius 34.000000

CoreNEURON values:

nrn_init_ion 15 na_ion conci 10.000000 conco 140.000000 charge 1.000000 celsius 34.000000
nrn_init_ion 16 k_ion conci 54.400000 conco 2.500000 charge 1.000000 celsius 34.000000
nrn_init_ion 25 ca_ion conci 0.000050 conco 2.000000 charge 2.000000 celsius 34.000000
nrn_init_ion 49 hi_ion conci 1.000000 conco 1.000000 charge 1.000000 celsius 34.000000

System (please complete the following information)

  • OS: Ubuntu 20.04
  • Compiler: GCC
  • Version: NEURON master branch, CoreNEURON magkanar/fix_pdata branch
  • Backend: CPU

cc: @pramodk @nrnhines This issue is a bit related to the issue we were debugging together in the past with NetPyNE simulations however the issue we were seeing then is fixed from this PR #775

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions