-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid errors with STATE variables without DERIVATE block #2
Conversation
* In case of state variables without ODEs or SOLVE block we get errors like: V not really a STATE; Ie. No differential equation for it gNMDA not really a STATE; Ie. No differential equation for it * Not sure about the "desirable" fix here: - should we avoid declaring variables as STATE - use workaround of empty SOLVE block like this PR - have fix in neuron to avoid this as an error Tagging @nrnhines for this to discuss.
* mod files fixes for upcoming 9.0 * izhi2007.mod is somewhat unrelated but fixes the incompatibility introduced in previous neuron versions. see /pull/2/
I'm looking into this. I see that the error occurs with |
Ok, thanks michael for checking. May be I can remove mentioned variables as |
I emailed Salvadore. I'm guessing the wrong version of izhi2007.mod inadvertently ended up in the submitted modeldb zip file. |
Ok. For now, I have converted STATE variables to ASSIGN. Let's see what @salvadord says. |
@pramodk this PR also needs an entry in the README |
Done! |
@nrnhines / @salvadord: was there any conclusion on the above? Otherwise, a simple/compatible change with neuron is to just to not have |
@pramodk I think changing to ASSIGNED is the best way to proceed. |
@nrnhines @pramodk Sorry for the late reply. Changing to ASSIGNED makes sense. In a later version of this izhikevich mod file we had actually made that change already, see here: https://senselab.med.yale.edu/ModelDB/ShowModel?model=39948&file=/izhikevich_simple_nrn/izhi2007a.mod#tabs-2 |
thank you for confirming @salvadord ! |
In case of state variables without ODEs or SOLVE block we get
errors like:
V not really a STATE; Ie. No differential equation for it
gNMDA not really a STATE; Ie. No differential equation for it
Not sure about the "desirable" fix here:
Tagging @nrnhines for this to discuss.