Open anilbey opened 1 year ago
I propose we change this in the packages, not in EModelRunner.
Each package could have an export NRNUNIT_USE_LEGACY=1
in their run_py.sh
.
If we do it this way, we would also have the packages in the EModelRunner example folder to change.
Finally, since the synplas packages are already out, we could implement the nrnunit_use_legacy in EModelRunner for this particular case.
I see, that sounds good to me.
Problem
NEURON 8.0 introduces a breaking change in the constant values [1, 2].
The NEURON our supercomputer (the one used in generating the packages) does not take this change into consideration (therefore uses the old constants).
The NEURON on Pypi does take this change into consideration (uses the new constants).
Here are the changes in those values over years. R is some gas constant. FARADAY is the Faraday constant.
Solution
We probably need to set the NRNUNIT_USE_LEGACY flag in EmodelRunner so that users will use the old constants as we used them in our supercomputer.
We can set the parameter either with
export NRNUNIT_USE_LEGACY=1
or withh.nrnunit_use_legacy(True)
[3].References