Skip to content
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

Merged
merged 4 commits into from
May 30, 2022

Conversation

pramodk
Copy link
Contributor

@pramodk pramodk commented May 23, 2022

  • 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.

olupton and others added 2 commits May 17, 2022 16:26
 * 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.
pramodk added a commit that referenced this pull request May 23, 2022
 * mod files fixes for upcoming 9.0
 * izhi2007.mod is somewhat unrelated but fixes the incompatibility
   introduced in previous neuron versions. see /pull/2/
@nrnhines
Copy link

I'm looking into this. I see that the error occurs with NEURON -- VERSION 7.6.7 HEAD (603da174f) 2019-04-19. Also, the now deprecated http://github.com/nrnhines/nrnverify_modeldb never attempted to run this model. That error message has been present since before 2007 [svn r1897] start development of 6.2 which is as old as the git repository goes.

@pramodk
Copy link
Contributor Author

pramodk commented May 23, 2022

Ok, thanks michael for checking.

May be I can remove mentioned variables as STATE and turn them into ASSIGN? that might be simpler than empty SOLVE block?

@nrnhines
Copy link

I emailed Salvadore. I'm guessing the wrong version of izhi2007.mod inadvertently ended up in the submitted modeldb zip file.

@pramodk
Copy link
Contributor Author

pramodk commented May 24, 2022

Ok. For now, I have converted STATE variables to ASSIGN. Let's see what @salvadord says.

@olupton
Copy link
Contributor

olupton commented May 24, 2022

@pramodk this PR also needs an entry in the README

@pramodk
Copy link
Contributor Author

pramodk commented May 24, 2022

Done!

@pramodk
Copy link
Contributor Author

pramodk commented May 28, 2022

I emailed Salvadore. I'm guessing the wrong version of izhi2007.mod inadvertently ended up in the submitted modeldb zip file.

@nrnhines / @salvadord: was there any conclusion on the above? Otherwise, a simple/compatible change with neuron is to just to not have STATE variables but ASSIGNED. Let us know how to proceed here.

@nrnhines
Copy link

@pramodk I think changing to ASSIGNED is the best way to proceed.

@salvadord
Copy link

@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

@pramodk
Copy link
Contributor Author

pramodk commented May 30, 2022

thank you for confirming @salvadord !

@ramcdougal ramcdougal merged commit 4d7eed3 into ModelDBRepository:master May 30, 2022
@olupton olupton mentioned this pull request May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants