I hope I've fixed it now so that this error is trapped. (In fact Tim
already was trapping exceptions, only the exception comes from the C world
and so is not a proper Python exception, so it was skipping his exception
handling.) It will now (I hope!) show a (long!) warning to the screen,
and also print it to the Python shell. You can email the latter to us to
help us sort the problem out.
Wayne
On Thu, 23 Aug 2007, Wayne Boucher wrote:
> Right, we ought to trap that error a bit more gracefully. The fitting
> algorithm definitely does not always work (the one I added last week seems
> to be particularly badly solved, although the problem below is even more
> serious than that).
>
> Wayne
>
> On Thu, 23 Aug 2007, Patrick van der Wel wrote:
>
> > Hello,
> >
> > I just had this error message during the usage of Rates Analysis.
> > resulting in it getting stuck at 66% progress.
> >
> > Error message below:
> >
> > Exception in Tkinter callback
> > Traceback (most recent call last):
> > File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 1403, in __call__
> > return self.func(*args)
> > File
> > "/home/pvanderwel/research/software/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/CalcRatesPopup.py",
> > line 640, in matchPeaks
> > dataFitting.fit()
> > File
> > "/home/pvanderwel/research/software/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/DataFitting.py",
> > line 66, in fit
> > functionFitData(self, useBootstrap=self.useBootstrap)
> > File
> > "/home/pvanderwel/research/software/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/DataAnalysisBasic.py",
> > line 737, in functionFitData
> > (params, paramsDev, yFit, chiSq) = bootstrapData(method,nIter,noise,x,y)
> > FitMethod.error: singular data
> > Exception in Tkinter callback
> > Traceback (most recent call last):
> > File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 1403, in __call__
> > return self.func(*args)
> > File
> > "/home/pvanderwel/research/software/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/CalcRatesPopup.py",
> > line 640, in matchPeaks
> > dataFitting.fit()
> > File
> > "/home/pvanderwel/research/software/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/DataFitting.py",
> > line 66, in fit
> > functionFitData(self, useBootstrap=self.useBootstrap)
> > File
> > "/home/pvanderwel/research/software/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/DataAnalysisBasic.py",
> > line 737, in functionFitData
> > (params, paramsDev, yFit, chiSq) = bootstrapData(method,nIter,noise,x,y)
> > FitMethod.error: singular data
> >
>
|