Hello,
The key line here in the error message is:
>> BlockFile.error: could not get point: 967 31 117
So the question is whether the spectrum is really as big as that. The
noise estimator picks some random points out of the spectrum, and it uses
the stated number of points in the "verify spectrum file details" dialog
when you are opening it up to determine the range of the points. So I can
see one of three possibilities:
(1) The number of points is wrong
(2) The disk access glitched for some reason
(3) There is a bug in the code that picks the random point (but I can't
see one)
Well, I guess we can have the Spanish Inquisition:
(4) Something else
Once this noise estimation failed, the other exceptions then followed
suit. I could try and protect the noise estimator function from not being
able to get the data, but that seems like asking for trouble, you should
know as soon as possible that something is wrong (even if most of that
error message is rather opaque).
Wayne
On Wed, 21 Feb 2007, Justin Douglas wrote:
> Hi,
>
> I get the following error message when opening spectra.
>
> thanks,
>
> Justin
>
>
>
>
>
> Traceback (most recent call last):
> File "/sw/lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__
> return self.func(*args)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/OpenSpectrumPopup.py",
> line 223, in openSpectra
> self.parent.finishInitSpectrum(spectrum)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1314, in finishInitSpectrum
> self.initBlockFile(spectrum)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1154, in initBlockFile
> Util.defaultContourLevels(spectrum)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Util.py",
> line 1195, in defaultContourLevels
> v = 3 * getNoiseEstimate(spectrum) /
> spectrum.root.currentAnalysisProject.globalContourScale
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/ExperimentBasic.py",
> line 444, in getNoiseEstimate
> d = block_file.getValue(pt)
> BlockFile.error: could not get point: 967 31 117
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/sw/lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__
> return self.func(*args)
> File "/sw/lib/python2.4/lib-tk/Tkinter.py", line 456, in callit
> func(*args)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1467, in <lambda>
> self.parent.after_idle(lambda: self.checkCreateSpectraViews(
> axisPanel.spectrumWindow))
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1486, in checkCreateSpectraViews
> self.checkCreateSpectrumView(window, spectrum)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1527, in checkCreateSpectrumView
> self.createSpectrumView(window, spectrum, mapping)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1503, in createSpectrumView
> self.changedViewAxisMapping(view)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1550, in changedViewAxisMapping
> self.initContourSliceFiles(view)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1558, in initContourSliceFiles
> self.initStoredContourFiles(view)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1596, in initStoredContourFiles
> for storedContour in spectrum.storedContourFiles.keys():
> AttributeError: 'DataSource' object has no attribute 'storedContourFiles'
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/sw/lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__
> return self.func(*args)
> File "/sw/lib/python2.4/lib-tk/Tkinter.py", line 456, in callit
> func(*args)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1467, in <lambda>
> self.parent.after_idle(lambda: self.checkCreateSpectraViews(
> axisPanel.spectrumWindow))
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1486, in checkCreateSpectraViews
> self.checkCreateSpectrumView(window, spectrum)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1527, in checkCreateSpectrumView
> self.createSpectrumView(window, spectrum, mapping)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1503, in createSpectrumView
> self.changedViewAxisMapping(view)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1550, in changedViewAxisMapping
> self.initContourSliceFiles(view)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1558, in initContourSliceFiles
> self.initStoredContourFiles(view)
> File
> "/home/douglas/Documents/Programs/software/analysis/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1596, in initStoredContourFiles
> for storedContour in spectrum.storedContourFiles.keys():
> AttributeError: 'DataSource' object has no attribute 'storedContourFiles'
>
|