On Wed, Jan 3, 2018 at 7:47 AM, Tellrell White 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
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
Have just looked at your code from my mobile.
You want to check numpy.log10 and numpy.greater (there will be other ways
to do the same thing).
On Tue, Jan 2, 2018, 20:18 Gilad Beeri (ApolloShield) <
gi...@apolloshield.com> wrote:
> This is related to Python, not GNU Radio per se. It seems that
This is related to Python, not GNU Radio per se. It seems that you pass in1
to math.log10().
I assume that you define in1 as input_items[1], which is a list of items to
process (not a single item), while the log function expects to get a float,
not a list.
Something like:
for item in in1:
c =
Hello Guys
I'm creating a customized block in the GNU Radio framework using python
that takes in a number of input items and once that number of input items
surpasses a certain number, 1024 of the input items are taken and stored
into an array, and then those items are converted to dB and lastly