Print

Print


Actually, it's not an API error, it's an aliasing error, specifically it's
a question of whether points start from 0 or 1 in the fundamental region.
We'll try and get our conventions to be consistent.

Wayne

On Sat, 27 Sep 2003, Wayne Boucher wrote:

> Thanks, that's an API error message which should be trapped and
> re-transmitted to the user in a slightly more user-friendly way!
>
> Wayne
>
> On Fri, 26 Sep 2003, Brian Smith wrote:
>
> > And another (slightly silly) one
> >
> > "Add Peak" popup -> Update with "default" values (which are silly ones, I
> > admit, somewhere beyond one corner of the spectrum?)
> >
> > It bombs, but it should handle this gracefully ("I can't pick there" or
> > something)
> >
> > Exception in Tkinter callback
> > Traceback (most recent call last):
> >   File "/usr/local/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> > 1316, in __call__
> >     return apply(self.func, args)
> >   File
> > "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/EditPeakPopup.py",
> > line 261, in commit
> >     self.peak = pickPeak(self.peakList, self.posn)
> >   File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/PeakBasic.py",
> > line 186, in pickPeak
> >     peakDim.position    = p -
> > peakDim.numAliasing*spectrum.dataDims[i].numPointsOrig
> >   File "/usr/local/ccpnmr/ccpnmr1.0/python/ccp/api/Nmr.py", line 6174, in
> > setPosition
> >     raise ApiError('position constraint position_ge_1 violated by value
> > %s' % `value`)
> > ApiError: position constraint position_ge_1 violated by value
> > 0.0072298773216061818
> > Exception in Tkinter callback
> > Traceback (most recent call last):
> >   File "/usr/local/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> > 1316, in __call__
> >     return apply(self.func, args)
> >   File "/usr/local/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> > 436, in callit
> >     apply(func, args)
> >   File
> > "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/EditPeakListPopup.py",
> > line 565, in peaksUpdate
> >     self.matrixData.append( self.getPeakData(peak) )
> >   File
> > "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/EditPeakListPopup.py",
> > line 211, in getPeakData
> >     posn  = getPeakDimPpm(peakDim)
> >   File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/PeakBasic.py",
> > line 205, in getPeakDimPpm
> >     ppm  = pnt2ppm( aliasedPeakDimPosition(peakDim),
> > peakDim.peak.peakList.dataSource.dataDims[i].dataDimRefs[0] )
> >   File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/PeakBasic.py",
> > line 111, in aliasedPeakDimPosition
> >     position = peakDim.position +
> > (peakDim.numAliasing*peakDim.dataDimRef.dataDim.numPointsOrig)
> > AttributeError: 'NoneType' object has no attribute 'dataDim'
> >
> >
> > --
> > Dr. Brian O. Smith ------------------------ [log in to unmask]
> >           Division of Biochemistry & Molecular Biology,
> >              Institute Biomolecular & Life Sciences,
> >            University of Glasgow, Glasgow G12 8QQ, UK.
> > Tel: 0141 330 5167                             Fax: 0131 330 8640
> >
>
>