Hi Mike,
We've been working with this in the lab recently - and had hoped it had been fixed! Until Wayne can give us a proper patch, you might be able to avoid the zero division error by changing the spectra view slightly (it's caused by grabbing more than one view tile at a time - a smaller view is less likely to have multiple tiles...)
Good luck,
Dan
On 4 Feb 2010, at 21:24, Michael Parker Latham wrote:
> Hi,
>
> I am trying to print overlayed spectra. I get the following error:
>
> 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/PrintWindow.py", line 213, in saveFile
> File "ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/PrintBasic.py", line 71, in printWindow
> File "/home/latham/Programs/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py", line 1600, in drawAll
> drawRow(handlers, object, j)
> File "/home/latham/Programs/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py", line 1582, in drawRow
> drawCanvas(handlers[row][i], object, row, i)
> File "/home/latham/Programs/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py", line 1569, in drawCanvas
> self.drawCanvasReal(handler, object, row, col)
> File "/home/latham/Programs/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py", line 1573, in drawCanvasReal
> self.doCanvas(handler, object, row, col)
> File "/home/latham/Programs/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py", line 1506, in doCanvas
> self.drawViewPeaks(handler, view, row, col)
> File "/home/latham/Programs/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py", line 1265, in drawViewPeaks
> drawMethod, intensityMax, volumeMax, xpix, ypix)
> File "/home/latham/Programs/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py", line 846, in drawViewTilePeaks
> t = self.setupRanges(handler, view, worldPointRanges, spectrumPointRanges, row, pad=True)
> File "/home/latham/Programs/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py", line 733, in setupRanges
> handler.mapRanges(x0, y0, x1, y1, a0, b0, a1, b1)
> File "ccpnmr/ccpnmr2.1/python/memops/universal/PrintHandler.py", line 147, in mapRanges
> ZeroDivisionError: float division
>
> The resulting postscript has the peaks, but no tick marks or numbers on the axes. I am using fully updated Analysis 2.1.2 on FC10.
>
> Thanks,
> Mike
Daniel O'Donovan
[log in to unmask]
|