discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Vector average with decimate block


From: Glen I Langston
Subject: Re: [Discuss-gnuradio] Vector average with decimate block
Date: Thu, 15 Mar 2018 21:54:19 -0400

Hello Marcus and all,

Sorry to keep dragging on with this vector decimate.

I’ve gotten “vave” into grc but it is not running properly.

The grc messages I get are below:

Generating: '/Users/glangsto/Desktop/Research/vdecimate/keep5.py'

Executing: 
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
 -u /Users/glangsto/Desktop/Research/vdecimate/keep5.py

Number work inputs :  1  Length:  10
Number work outputs:  1  Length:  10
Number work inputs :  1  Length:  10
Number work outputs:  1  Length:  10
handler caught exception: operands could not be broadcast together with shapes 
(4,) (10,) 
Traceback (most recent call last):
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/gr/gateway.py",
 line 55, in eval
    try: self._callback()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/gr/gateway.py",
 line 160, in __gr_block_handle
    ) for i in self.__out_indexes],
  File "/Users/glangsto/Desktop/Research/gr-vave/python/vave.py", line 73, in 
work
    self.sum[0:ncp] = self.sum[0:ncp] + vin[0:ncp]
ValueError: operands could not be broadcast together with shapes (4,) (10,) 
thread[thread-per-block[4]: <block vave (1)>]: SWIG director method error. 
Error detected when calling ‘feval_ll.eval'

I’ve tweaked the python and attached the .xml etc

Attachment: qa_vave.py
Description: Text Data

Attachment: vave.py
Description: Text Data

Attachment: keep5.grc
Description: Binary data

Attachment: vave_vave.xml
Description: application/xml


The QA code runs fine all by itself.  Some of the debugging print statements 
remain in the code

Sorry for the long, complicated email.

Suggestions?

Best regards

Glen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]