-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeWarning: divide by zero encountered in divide
#50
Comments
Are you using real captured signals or synthetically-generated signals? This error occurs if the bit 0 positions have exactly 0.0000 amplitude, which is unlikely in real captured signals. An easy fix is to add a complex noise source (with very very small noise) to your signal. But I agree, this error should be avoided. |
This is whenever I start gnuradio with a real SDR. Maybe the PlutoSDR sends
a bunch of zeros before actually receiving in the brief moment after the
configuration was pushed via libiio?
…On Thu, Dec 8, 2022, 20:39 Matt Hostetter ***@***.***> wrote:
Are you using real captured signals or synthetically-generated signals?
This error occurs if the bit 0 positions have exactly 0.0000 amplitude,
which is unlikely in real captured signals. An easy fix is to add a complex
noise source (with very very small noise) to your signal.
But I agree, this error should be avoided.
—
Reply to this email directly, view it on GitHub
<#50 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE3USFM6P4IDVIZ5X46OOMTWMI2QHANCNFSM6AAAAAASYON6AU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I encountered same and fixed in #52. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This line yields the error. This was also mentioned in #31. I see the error every time when I launch the script. I'm using a PlutoSDR as source.
gr-adsb/python/demod.py
Line 101 in 5d0361d
The text was updated successfully, but these errors were encountered: