Re: [Discuss-gnuradio] Python block, itemsize mismatch

2014-03-11 Thread Martin Braun
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 fo

Re: [Discuss-gnuradio] Python block, itemsize mismatch

2014-03-10 Thread David Halls
lf of Martin Braun [martin.br...@ettus.com] Sent: 10 March 2014 21:29 To: discuss-gnuradio@gnu.org Subject: Re: [Discuss-gnuradio] Python block, itemsize mismatch On 03/10/2014 06:57 PM, David Halls wrote: > Hi, > > I get the following error connecting 'OFDM Serializer' (GNU Ra

Re: [Discuss-gnuradio] Python block, itemsize mismatch

2014-03-10 Thread Activecat
On Tue, Mar 11, 2014 at 5:29 AM, Martin Braun wrote: > On 03/10/2014 06:57 PM, David Halls wrote: > > Hi, > > > > I get the following error connecting 'OFDM Serializer' (GNU Radio block > > with complex output), to my own Python block 'blsd_dec_bfb' (with > > complex input) > > > > "ValueError: it

Re: [Discuss-gnuradio] Python block, itemsize mismatch

2014-03-10 Thread Martin Braun
On 03/10/2014 06:57 PM, David Halls wrote: > Hi, > > I get the following error connecting 'OFDM Serializer' (GNU Radio block > with complex output), to my own Python block 'blsd_dec_bfb' (with > complex input) > > "ValueError: itemsize mismatch: ofdm_serializer_vcc0:0 using 8, > blsd_dec_bfb0:0 u

[Discuss-gnuradio] Python block, itemsize mismatch

2014-03-10 Thread David Halls
Hi, I get the following error connecting 'OFDM Serializer' (GNU Radio block with complex output), to my own Python block 'blsd_dec_bfb' (with complex input) "ValueError: itemsize mismatch: ofdm_serializer_vcc0:0 using 8, blsd_dec_bfb0:0 using 16" This is the code in the beginning of my block