Hello,
There were several problems, including that two different bits of the code
had a different idea of what the experiments were (one excluded those
without any spectra and one did not), which was the immediate problem
below. But there was another problem as well to do with things not being
updated correctly. The easiest way to fix it was to upgrade the relevant
code (and I changed some more as well while I was at it) from using the
old PulldownMenu widget to the newer PulldownList widget. Those fixes are
on the update server now.
Wayne
On Tue, 6 Apr 2010, Patrick van der Wel wrote:
> Hi,
>
> I got the following exception when opening up the contour dialog for an experiment containing two spectra. It seems that the spectrum pulldown does not handle more than one spectrum per experiment, perhaps?
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line 1403, in __call__
> return self.func(*args)
> File "ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/WindowPopup.py", line 930, in generalContours
> File "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py", line 2453, in editContourLevels
> popup.setSpectrum(spectrum)
> File "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/EditContourLevels.py", line 361, in setSpectrum
> self.expt_spectrum.setSpectrum(spectrum)
> File "ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/frames/ExptSpectrumRows.py", line 161, in setSpectrum
> File "ccpnmr/ccpnmr2.1/python/memops/gui/PulldownMenu.py", line 442, in setSelectedIndex
> File "ccpnmr/ccpnmr2.1/python/memops/gui/PulldownMenu.py", line 406, in setLabel
> File "ccpnmr/ccpnmr2.1/python/memops/gui/PulldownMenu.py", line 214, in getEntryText
> IndexError: list index out of range
>
|