load_template vs xopen

Anything that doesn't fit elsewhere.
Post Reply
murphyg
Posts: 1
Joined: Fri Jul 08, 2005 10:08 am

load_template vs xopen

Post by murphyg »

I am running NEURON on a MSWin box and for some reason I can't use load_template but I can use xopen to load the file. As a result, I have come to the realization that I do not really understand the difference between the two commands. Is there an operational difference and if so what is the distinction?
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

I will assume that you have already looked these up in the Programmer's
Reference. If not, by all means do so. Since you're using MSWin, it's on
your PC; click on Documentation in the NEURON program group, then
look in the alphabetical listing.

Now my own comments.

About the only place you'll encounter load_template is in legacy code.
MSWin doesn't handle load_template or load_proc well at all, so in the
interests of cross-platform compatibility, it is best to avoid using either
of these statements when writing new code. If you want something
from NEURON's standard run library, just load the whole thing with
load_file("nrngui.hoc"), or, if you don't want to see the NEURON Main
Menu toolbar, load_file("noload.hoc")
Post Reply