I was using the MRF and wanted to save the various parameter set combinations it was using in arriving at its final set. I clicked the "Append the path to savepath.fit" checkbox and ran the Optimizer but did not see any file being created. On going through "nrn/lib/hoc/mulfit/fitparm.hoc" I found that a variable named 'saveflag' was being used to determine whether the file was to be created or not:
Code: Select all
if (saveflag) {
savepath.wopen("savepath.tmp") // need to put in rank later
lines = 0
}
In its init() function, it was being explicitly set to 0. But apparently, it is not getting updated when its checkbox is ticked in the GUI panel. By explicitly setting saveflag = 1 in its init(), I was able to get it working. What could be the issue with the GUI checkbox?