Hello,
I've fixed the first problem. The subsequent problem I cannot replicate
but I guess you are adding peaks manually using ctrl click. So I tried
that but it worked ok for me, so I'm not sure what is going wrong there.
But it probably caused the subsequent problem. (I did fine one other bug
though which I fixed.)
Wayne
On Wed, 1 Jun 2011, S.P. Skinner wrote:
> Hi All,
>
> A couple of problems have recently arisen. I am using pseudo-3D relaxation
> experiments and when I attempted to select the side chain resonances before
> intialising the peak list, I got the following traceback:
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/python2.6/lib/python2.6/lib-tk/Tkinter.py",
> line 1410, in __call__
> return self.func(*args)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/memops/gui/ScrolledMatrix.py",
> line 746, in mouseClick
> self.selectCell(row,col)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/memops/gui/ScrolledMatrix.py",
> line 1839, in selectCell
> self.callback(self.currentObject, objRow, objCol)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/InitRootAssignments.py",
> line 435, in selectAmidePair
> self.followPeaks()
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/InitRootAssignments.py",
> line 357, in followPeaks
> zoomToShowPeaks(self.amidePair, self.windowPane)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowBasic.py",
> line 1815, in zoomToShowPeaks
> for i, (ppmA, ppmB) in enumerate(region):
> TypeError: 'NoneType' object is not iterable
>
> Secondly, when I attempt to navigate between peak lists and pick peaks in the
> spectrum, the peak list doesn't refresh to show the selected one and I have
> the following traceback:
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/python2.6/lib/python2.6/lib-tk/Tkinter.py",
> line 1410, in __call__
> return self.func(*args)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/memops/gui/ScrolledWindow.py",
> line 1032, in <lambda>
> cmd = lambda event, button=button, state=state: self.releaseFunc(event,
> button, state)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/memops/gui/ScrolledWindow.py",
> line 1005, in releaseFunc
> func(event)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/memops/gui/ScrolledWindow.py",
> line 1597, in selectLocation
> self.select_single_func(event.widget, a, b, x, y, button, state,
> event=event)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/frames/WindowFrame.py",
> line 1936, in selectSingle
> self.menuPeak = self.createNewPeak(a, b, row, col)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/frames/WindowFrame.py",
> line 2001, in createNewPeak
> parent=self.topPopup, doFit=False)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/PeakBasic.py",
> line 1705, in addPeak
> setPeakPosition(peak, position, tile)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/PeakBasic.py",
> line 1815, in setPeakPosition
> peakDim.position = position[dim]
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccp/api/nmr/Nmr.py",
> line 55061, in setPosition
> + ": %s" % (value,)
> ApiError: ccp.nmr.Nmr.PeakDim.setPosition:
> position constraint position_ge_1 violated by value: 0.0
> Exception in Tkinter callback
> Traceback (most recent call last):
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/python2.6/lib/python2.6/lib-tk/Tkinter.py",
> line 1410, in __call__
> return self.func(*args)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/memops/gui/ScrolledWindow.py",
> line 1032, in <lambda>
> cmd = lambda event, button=button, state=state: self.releaseFunc(event,
> button, state)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/memops/gui/ScrolledWindow.py",
> line 1005, in releaseFunc
> func(event)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/memops/gui/ScrolledWindow.py",
> line 1597, in selectLocation
> self.select_single_func(event.widget, a, b, x, y, button, state,
> event=event)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/frames/WindowFrame.py",
> line 1936, in selectSingle
> self.menuPeak = self.createNewPeak(a, b, row, col)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/frames/WindowFrame.py",
> line 2001, in createNewPeak
> parent=self.topPopup, doFit=False)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/PeakBasic.py",
> line 1705, in addPeak
> setPeakPosition(peak, position, tile)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/PeakBasic.py",
> line 1815, in setPeakPosition
> peakDim.position = position[dim]
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccp/api/nmr/Nmr.py",
> line 55061, in setPosition
> + ": %s" % (value,)
> ApiError: ccp.nmr.Nmr.PeakDim.setPosition:
> position constraint position_ge_1 violated by value: 0.0
> Exception in Tkinter callback
> Traceback (most recent call last):
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/python2.6/lib/python2.6/lib-tk/Tkinter.py",
> line 1410, in __call__
> return self.func(*args)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/memops/gui/Menu.py",
> line 309, in <lambda>
> options_copy['command'] = lambda: func(self.menu_event)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/frames/WindowFrame.py",
> line 1565, in createPeak
> self.createNewPeak(a, b, row, col)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/frames/WindowFrame.py",
> line 2001, in createNewPeak
> parent=self.topPopup, doFit=False)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/PeakBasic.py",
> line 1705, in addPeak
> setPeakPosition(peak, position, tile)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/PeakBasic.py",
> line 1815, in setPeakPosition
> peakDim.position = position[dim]
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccp/api/nmr/Nmr.py",
> line 55061, in setPosition
> + ": %s" % (value,)
> ApiError: ccp.nmr.Nmr.PeakDim.setPosition:
> position constraint position_ge_1 violated by value: 0.0
> Exception in Tkinter callback
> Traceback (most recent call last):
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/python2.6/lib/python2.6/lib-tk/Tkinter.py",
> line 1410, in __call__
> return self.func(*args)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/memops/gui/ScrolledWindow.py",
> line 1032, in <lambda>
> cmd = lambda event, button=button, state=state: self.releaseFunc(event,
> button, state)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/memops/gui/ScrolledWindow.py",
> line 1005, in releaseFunc
> func(event)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/memops/gui/ScrolledWindow.py",
> line 1597, in selectLocation
> self.select_single_func(event.widget, a, b, x, y, button, state,
> event=event)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/frames/WindowFrame.py",
> line 1936, in selectSingle
> self.menuPeak = self.createNewPeak(a, b, row, col)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/frames/WindowFrame.py",
> line 2001, in createNewPeak
> parent=self.topPopup, doFit=False)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/PeakBasic.py",
> line 1705, in addPeak
> setPeakPosition(peak, position, tile)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/PeakBasic.py",
> line 1815, in setPeakPosition
> peakDim.position = position[dim]
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccp/api/nmr/Nmr.py",
> line 55061, in setPosition
> + ": %s" % (value,)
> ApiError: ccp.nmr.Nmr.PeakDim.setPosition:
> position constraint position_ge_1 violated by value: 0.0
> Exception in Tkinter callback
> Traceback (most recent call last):
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/python2.6/lib/python2.6/lib-tk/Tkinter.py",
> line 1410, in __call__
> return self.func(*args)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/python2.6/lib/python2.6/lib-tk/Tkinter.py",
> line 495, in callit
> func(*args)
> File
> "/afs/gorlaeus.net/lic/metprot/software/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/frames/PeakTableFrame.py",
> line 999, in updatePeaksFromList
> value = sampledDim.pointValues[int(peakDim.position)-1]
> TypeError: int() argument must be a string or a number, not 'NoneType'
>
> Any ideas what's gone wrong?
>
> Regards
>
> Simon
>
> --
> Simon P Skinner
> Protein Chemistry Group
> Leiden Institute of Chemistry, Universiteit Leiden
> Phone: +31 71 527 6089 / Fax: +31 71 527 4349
> E-mail : [log in to unmask]
>
|