Error saving a XYFitness

Using the Multiple Run Fitter, praxis, etc..
Post Reply
vdhelm
Posts: 4
Joined: Fri Jun 01, 2007 5:50 am
Location: University of Munich

Error saving a XYFitness

Post by vdhelm » Wed Jan 07, 2015 11:38 am

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!

ted
Site Admin
Posts: 5376
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Error saving a XYFitness

Post by ted » Fri Jan 09, 2015 1:39 pm

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.

Post Reply