Hi,
I have a project where attempting to edit a particular peak list produces
the following traceback:
>>> Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__
return self.func(*args)
File
"/usr/local/ccpnmr1.0.10/ccpnmr1.0/python/ccpnmr/analysis/EditPeakListsPopup.py",
line 406, in editPeaks
self.parent.editPeakList(self.peakList)
File
"/usr/local/ccpnmr1.0.10/ccpnmr1.0/python/ccpnmr/analysis/AnalysisPopup.py",
line 1128, in editPeakList
popup.update(peakList)
File
"/usr/local/ccpnmr1.0.10/ccpnmr1.0/python/ccpnmr/analysis/EditPeakListPopup.py",
line 770, in update
self.specPullDown.setup(self.spectra,self.spectra.index(selectedSpec))
File
"/usr/local/ccpnmr1.0.10/ccpnmr1.0/python/memops/gui/PulldownMenu.py",
line 234, in setup
self.setSelectedIndex(selected_index)
File
"/usr/local/ccpnmr1.0.10/ccpnmr1.0/python/memops/gui/PulldownMenu.py",
line 425, in setSelectedIndex
self.callback(selected_index, self.entries[selected_index])
File
"/usr/local/ccpnmr1.0.10/ccpnmr1.0/python/ccpnmr/analysis/EditPeakListPopup.py",
line 690, in changeSpec
self.peakLists = self.getListOfLists(self.spectrum)
File
"/usr/local/ccpnmr1.0.10/ccpnmr1.0/python/ccpnmr/analysis/EditPeakListPopup.py",
line 813, in getListOfLists
for peakList in spec.peakLists:
AttributeError: 'NoneType' object has no attribute 'peakLists'
The project originated in an earlier version of analysis, and several
spectra were deleted before loading the new ones. The error ocurrs for the
first of the new spectra. The peaks are definitely there and assigned.
They were picked in analysis and assignments applied using the copy peak
assignments tool. The peaks have been cloned to the next new spectrum. I
do not know at what point the errors started to appear.
Any tips as to how to fix?
Ta,
Brian
--
Dr. Brian O. Smith ---------------------- B Smith at bio gla ac uk
Division of Biochemistry & Molecular Biology,
Institute Biomedical & Life Sciences,
Joseph Black Building, University of Glasgow, Glasgow G12 8QQ, UK.
Tel: 0141 330 5167/6459/3089 Fax: 0141 330 8640
|