modlunit ?
modlunit ?
I would like to check the units in my code using NEURON's modlunit; however, it doesn't seem to be working for me. When I open modlunit and select the desired file from within the working directory, the screen flashes something very quickly and returns to the "Enter filename:" window. It appears that nothing is happening if not paying attention. What does this flash mean? What should I be seeing? How can I fix it?
Charly
Charly
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
If it's not complaining about anything, it didn't find any units inconsistencies. For fun,
you might deliberately introduce an error just to see what happens. For example,
start with a mod file that specifies a distributed current (WRITEs a current whose units
are in mA/cm2 and has a conductance density S/cm2), and change the units of the current
to A/cm or the conductance to uS/cm.
you might deliberately introduce an error just to see what happens. For example,
start with a mod file that specifies a distributed current (WRITEs a current whose units
are in mA/cm2 and has a conductance density S/cm2), and change the units of the current
to A/cm or the conductance to uS/cm.
Replace nrniv.exe in the shortcut with neuron.exe and the dos boxes will remain visible if modlunit has found a mistake. At least that is what it does here (XP with nrn 5.8 Main (88)).
I suppose we call this a bug, but it is something I remembered worked well earlier. So it might be XP as opposed to W2K, NT or Win98.
I suppose we call this a bug, but it is something I remembered worked well earlier. So it might be XP as opposed to W2K, NT or Win98.
W2K shows exactly the same problem.
with all these versions:
NEURON -- Version 5.6 2004-5-19 23:5:24 Main (81)
NEURON -- Version 5.8 2005-5-2 13:16:27 rel5_7_159 (1)
NEURON -- Version 5.8 2005-10-14 12:36:20 Main (88)
All with the same cygwin version though:
CYGWIN_NT-5.0 rajslab 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin
Workaround works forall of them.
with all these versions:
NEURON -- Version 5.6 2004-5-19 23:5:24 Main (81)
NEURON -- Version 5.8 2005-5-2 13:16:27 rel5_7_159 (1)
NEURON -- Version 5.8 2005-10-14 12:36:20 Main (88)
All with the same cygwin version though:
CYGWIN_NT-5.0 rajslab 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin
Workaround works forall of them.
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
The bug has been fixed--install this new version
http://www.neuron.yale.edu/ftp/neuron/v ... -setup.exe
http://www.neuron.yale.edu/ftp/neuron/v ... -setup.exe