Page 1 of 1

Error saving a XYFitness

Posted: Wed Jan 07, 2015 11:38 am
by vdhelm
Hello,

i have a MRF with several generators. Most of them are RegionFitness but some are XYFitness to detect wether there is an AP in the simulation. The simulation is running perfectly, but i cant save the XYFitness generators to a session file. Well, saving works, but when i load the session i get this error:

Code: Select all

>nrniv: Arg out of range in user function
 in fit_testxy.ses near line 24
 {tobj = new RegionFitness()}
                             ^
        Vector[366].resize(-59.8438)
      RegionFitness[20].rfile(File[6])
    FitnessGenerator[21].rfile(File[5], File[6], "      FitnessGe...")
  ParmFitness[0].rfile(File[5], File[6])
and others
I have found a workaround:
for every generator
- Select-Copy x,y subsets
- Fitness-Change Method to-RegionFitness
- Regions-Paste Weights

then i save it and can load it successully
(after loading i have to the same workaround back copying the weights to XY subsets)

is this a known bug or is it because of errors in my own code?

Thanks!

Re: Error saving a XYFitness

Posted: Fri Jan 09, 2015 1:39 pm
by ted
AFAIK it is not a known bug, but perhaps this is the first report of it. The only way we will be able to deterimine whether it is a bug in NEURON or in your code will be to reproduce it here. If you can zip up just the code (hoc, mod and ses files) that is necessary to reproduce it and email it to
ted dot carnevale at yale dot edu
I'll take a look at it and tell you what I find.