[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] math range error?
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] math range error? |
Date: |
Mon, 20 Feb 2006 22:26:41 -0800 |
User-agent: |
Mutt/1.5.9i |
On Mon, Feb 20, 2006 at 01:09:17PM -0800, joe j wrote:
> Hi everyone,
> I'm currently working on angle manipulation from "Angle manipulation &
> other concerns" (earlier postings). Whenever I use scopesink.py and
> fftsink.py functions to graph data, I getting math range error - not sure
> why. Here's the exact error message I got:
> Traceback (most recent call last):
> File "/root/gr/lib/python2.4/site-packages/gnuradio/wxgui/scopesink.py",
> line 399, in format_data
> self.Draw (graphics, xAxis=x_range, yAxis=self.y_range)
> File "/root/gr/lib/python2.4/site-packages/gnuradio/wxgui/plot.py", line
> 879, in Draw
> graphics.scaleAndShift(scale, shift)
> File "/root/gr/lib/python2.4/site-packages/gnuradio/wxgui/plot.py", line
> 356, in scaleAndShift
> o.scaleAndShift(scale, shift)
> File "/root/gr/lib/python2.4/site-packages/gnuradio/wxgui/plot.py", line
> 149, in scaleAndShift
> self.scaled = scale*self.points+shift
> OverflowError: math range error
You're probably trying to plot some NaN's or Inf's. Not sure where
they might come from (division?). On the other hand, if what you're
trying to get is the angle, just run the output the multiplier into
gr.complex_to_arg(). No need for mag or div.
Eric