Hello,
That sounds like the data file isn't as large as Analysis thinks it ought
to be. Unfortunately that error message doesn't tell you which spectrum
is at fault. So I'd change that line of code to:
try:
d = block_file.getValue(pt)
except:
from ccp.general.Io import getDataSourceFileName
print 'Spectrum = %s:%s' % (dataSource.name, dataSource.experiment.name)
print 'Number of points = %s' % ([x.numPoints for x in dataSource.dataDims],)
print 'Data file = %s' % getDataSourceFileName(dataSource)
raise
I hope that bit of code works anyway (the 'try' should be at the same
indent level as the 'd = ...' is now), I'm a bit rusty on v1 coding.
Assuming that that gives you a sensible message (it will appear above the
stack trace so you will have to look for it) then it's worth checking that
the number of points (npts1, npts2) is what you expect, and that npts1 >=
141 and npts2 >= 1024 (otherwise Analysis is stupidly asking for points
that don't exist) and that the data file on disk is of size 4*npts1*npts2
(plus a bit, if this is a data format with a header).
Wayne
On Wed, 22 Apr 2009, Jennifer Potts wrote:
> My computer crashed yesterday. I've rebooted but my project now doesn't open.
> I get the following message. I am using version 1.0.10.
>
> Thanks,
> Jen
>
>>>> 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 "/usr/local/ccpn/ccpnmr/ccpnmr1.0/python/memops/gui/BasePopup.py", line
> 227, in ok
> if (not self.apply()):
> File
> "/usr/local/ccpn/ccpnmr/ccpnmr1.0/python/memops/editor/OpenProjectPopup.py",
> line 142, in apply
> self.callback(self.project)
> File
> "/usr/local/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisPopup.py",
> line 949, in initProject
> Analysis.initProject(self, project)
> File "/usr/local/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 424, in initProject
> self.initSpectra()
> File "/usr/local/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1141, in initSpectra
> self.initBlockFile(spectrum)
> File "/usr/local/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1188, in initBlockFile
> Util.defaultContourLevels(spectrum)
> File "/usr/local/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Util.py", line
> 1273, in defaultContourLevels
> v = 3 * getNoiseEstimate(spectrum) /
> spectrum.root.currentAnalysisProject.globalContourScale
> File
> "/usr/local/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/ExperimentBasic.py",
> line 517, in getNoiseEstimate
> d = block_file.getValue(pt)
> BlockFile.error: could not get point: 141 1024
>
|