[Top][All Lists]

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

Re: [Discuss-gnuradio] gr_sync_block, AttributeError: No constructor def

From: Josh Blum
Subject: Re: [Discuss-gnuradio] gr_sync_block, AttributeError: No constructor defined
Date: Wed, 15 Feb 2012 16:48:00 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0

On 02/15/2012 04:22 PM, Jason Bonior wrote:
> I am trying to create a block using gr.gr_sync_block which will select
> a value from an input vector, pass that value to output, and discard
> the rest of the vector:
> !/usr/bin/env python
> from gnuradio import gr
> import numpy
> class vector_parser(gr.gr_sync_block):
>       def __init__(self):
>               gr.gr_sync_block.__init__(

This should be gr.sync_block. gr.gr_sync_block is actually the swigged
representation of the c++ class, and I dont think it should be there. Oh

Also, to get this feature you will need to install my next branch or
python_blocks branch. Sorry, writing blocks in python is not a mainline
feature. I hope someday it will be accepted.

This is my git repo with said branches:



reply via email to

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