Hello,
Those error messages are from just trying to calculate the noise estimate,
never mind trying to draw the thing! For this noise estimate error we
probably should trap it a bit better and put the message in a popup.
(Because it's a one-off.) But for similar messages you'd get with drawing
we probably should continue just to print to screen (it would get far too
annoying otherwise).
Wayne
On Thu, 21 Jun 2007, Patrick van der Wel wrote:
> I encountered the following error when I tried to open a spectrum file just
> now. Admittedly, this was a file which had gotten corrupted (i.e. truncated),
> but perhaps it would be preferable to pop up an error message rather than
> quietly fail (except for the feedback in the console window)?
>
> (this was a 2D 13C-13C spectrum in NMRPipe format, if that helps)
>
> Patrick
>
> >>> WARNING: file "/home/user/research/jun07i12_068.ft2" seems to be mostly 0,
> isDataBigEndian() returning True
> 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/user/research/software/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/OpenSpectrumP
> opup.py", line 206, in openSpectra
> spectrum.isBigEndian = True
>
> File "/home/user/research/software/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr1.0/python/cc
> p/api/nmr/Nmr.py", line 18004, in setIsBigEndian
>
> File "/home/user/research/software/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1407, in updatedSpectrumFileDetails
> self.initBlockFile(spectrum)
>
> File "/home/user/research/software/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1161, in initBlockFile
> Util.defaultContourLevels(spectrum)
>
> File "/home/user/research/software/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Util.py",
> lin e 1258, in defaultContourLevels
> v = 3 * getNoiseEstimate(spectrum) /
> spectrum.root.currentAnalysisProject.globalContourScale
>
> File "/home/user/research/software/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr1.0/python/cc
> pnmr/analysis/ExperimentBasic.py", line 444, in getNoiseEstimate
> d = block_file.getValue(pt)
> BlockFile.error: could not get point: 934 448
>
|