Very odd problem with NMODL files
Posted: Thu Jul 01, 2010 8:55 pm
Hello again,
Today I spent six hours debugging a pair of .mod files. Functionally they were identical with different parameters, but one calculates numbers correctly and the other doesn't. In the process of debugging, I got to the point where these mod files were completely identical, character by character, except for their name (the POINT_PROCESS tag). I even tried about 4 different names (in case I had picked a reserved label) for the file that didn't work, to no avail. Finally, I've decided to use the working file and pass different parameters to it upon initialization to get it to do what the other file was supposed to do. I was thinking it might be an encoding issue (I'm using Notepad++ for coding), but regardless of whether I copy/pasted or typed it all by hand, I got the same results. Has anyone encountered anything like this? I'm concerned now that my current files are also going to start bugging out for no apparent reason and that my models will stop working. I guess I've got it under control, but I'm really worried about the stability of future simulations.
Thanks to anyone that can help.
Today I spent six hours debugging a pair of .mod files. Functionally they were identical with different parameters, but one calculates numbers correctly and the other doesn't. In the process of debugging, I got to the point where these mod files were completely identical, character by character, except for their name (the POINT_PROCESS tag). I even tried about 4 different names (in case I had picked a reserved label) for the file that didn't work, to no avail. Finally, I've decided to use the working file and pass different parameters to it upon initialization to get it to do what the other file was supposed to do. I was thinking it might be an encoding issue (I'm using Notepad++ for coding), but regardless of whether I copy/pasted or typed it all by hand, I got the same results. Has anyone encountered anything like this? I'm concerned now that my current files are also going to start bugging out for no apparent reason and that my models will stop working. I guess I've got it under control, but I'm really worried about the stability of future simulations.
Thanks to anyone that can help.