On Wed, Jan 3, 2018 at 7:47 AM, Tellrell White <[email protected]> wrote:

> I made two edits to the code. I took out float() and took Gilad's
> suggestion to use np.log10() which operates on a list. Making these changes
> results in the following error
>
>  c = np.log10(in1)         #converts 1024 values stored in in1 to dB and
> stores them in c
> AttributeError: log10
> thread[thread-per-block[8]: <block ED_block (22)>]: caught unrecognized
> exception
>
> I'm assuming its because of the size of the values.
>

No, the size is irrelevant. In Python, "AttributeError: log10" means that
there is no attribute "log10" of some object — in this case presumably the
"np" module object which you tried to get "log10" from using the expression
"np.log10". Why this is so, I don't know, since it works for me at least in
a regular interactive python:


>>> import numpy as np

>>> np.log10

<ufunc 'log10'>


But that is where to start troubleshooting.
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to