[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Python block, itemsize mismatch
From: |
Martin Braun |
Subject: |
Re: [Discuss-gnuradio] Python block, itemsize mismatch |
Date: |
Tue, 11 Mar 2014 09:32:50 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
On 03/11/2014 02:06 AM, David Halls wrote:
> You're a genius! It works.
>
> Interestingly for a float it requires numpy.float32 or a similar error
> occurs.
Yes, in GNU Radio we consistently use 32-bit floats. A complex value
consists of two of these, hence the 64 bits.
Note that this is just for buffers. A lot of blocks use double
internally (i.e. 64-bit float, or 128-bit complex) for accuracy reason.
However, for signals, it's just a waste of bandwidth (most of time, SNR
will trump quantization noise anyway).
M