Page 1 of 1

restore in session files

Posted: Tue Sep 10, 2013 2:22 am
by Krishna Chaitanya

I have a doubt with regard to the session files. Inside my saved session file, I find restore(411,2) line. What is the meaning of those numbers as arguments? I searched about this syntax in NEURON programmer's reference but I couldn't get enough information. I could find only restore() or restore(1).

In this case, restore(411,2) means what?

Kindly let me know.

Thank you.

Re: restore in session files

Posted: Tue Sep 10, 2013 9:17 am
by ted
AFAIK the keyword "restore" does not refer to a hoc variable, procedure, or function, so it must be a method that belongs to a class. The only class that I know of that has a "restore" method is SaveState, but I have never seen an instance of SaveState in a ses file. So unless the ses file you're looking at was edited by somebody who inserted a reference to a SaveState instance, I suspect that the "restore" to which you refer has nothing to do with SaveState, but instead is a method that belongs to some "helper class" that is not intended to be employed directly by users. Without seeing the ses file I can't say more.

Re: restore in session files

Posted: Tue Sep 10, 2013 9:29 am
by ted
Update: I do find a method called restore in a ses file that included a VariableTimeStep panel.
grep restore *hoc
in NEURON's hoc library nrn/share/nrn/lib/hoc shows that the only instance of restore appears in varmeth1.hoc. It belongs to the NumericalMethodPanel, and its purpose is to restore saved numerical method details.