discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] AttributeError: No constructor defined for tagged


From: CEL
Subject: Re: [Discuss-gnuradio] AttributeError: No constructor defined for tagged_stream_block (Python)
Date: Tue, 28 May 2019 14:28:16 +0000

But you're free to do that in any block you desire, so you can write a
normal sync block and just always consume all input :)
On Tue, 2019-05-28 at 16:26 +0200, Sebastian Sahlin wrote:
> Hi,
> 
> I suppose not - I just figured that using a tagged stream block would be 
> useful since then I'd be able to iterate over the entire packet in one work 
> function call.
> 
> Den tis 28 maj 2019 kl 16:22 skrev Müller, Marcus (CEL) <address@hidden>:
> > But that block doesn't have to be a Tagged Stream Block itself, right?
> > On Tue, 2019-05-28 at 16:14 +0200, Sebastian Sahlin wrote:
> > > Hi Marcus,
> > > 
> > > Aha, that explains it.. bummer! Perhaps you could advise me on an 
> > > alternative solution to my problem. What I am trying to achieve with the 
> > > tagged stream block is to apply tags at an interval on a packet; the 
> > > values are taken from an array that I want to iterate over. However, 
> > > since the work function has no "memory" I am unsure how to solve 
> > > iterating over the array.      
> > > 
> > > Den tis 28 maj 2019 kl 16:04 skrev Müller, Marcus (CEL) <address@hidden>:
> > > > Hi Sebastian,
> > > > 
> > > > I must admit that I don't remember whether the TSB block base was
> > > > correctly wrapped for Python (darn it, first I write something, and
> > > > then you find a glaring counterexample); in fact, there's not a single
> > > > test case for that in the main GNU Radio tree, which probably means
> > > > "no".
> > > > 
> > > > Best regards,
> > > > Marcus
> > > > 
> > > > On Tue, 2019-05-28 at 14:41 +0200, Sebastian Sahlin wrote:
> > > > > Hi,
> > > > > 
> > > > > I'm attempting to create a tagged stream block in Python using the 
> > > > > following constructor:
> > > > > 
> > > > > class test_tagged_stream(gr.tagged_stream_block):
> > > > >     def __init__(self, test_param):
> > > > >         gr.tagged_stream_block.__init__(self,
> > > > >             name="test_tagged_stream",
> > > > >             in_sig=[numpy.complex64],
> > > > >             out_sig=[numpy.complex64],
> > > > >             length_tag_key="test_tag")
> > > > > 
> > > > > However Python is throwing "AttributeError: No constructor defined" 
> > > > > at me. Is there some glaringly obvious error in the above code? I am 
> > > > > using the input argument list as defined at 
> > > > > https://www.gnuradio.org/doc/doxygen/classgr_1_1tagged__stream__block.html#a601cd4073e9c3e6317b5ecc5e2e5871b
> > > > > 
> > > > > Regards
> > > > > 
> > > > > 
> > > > > 
> > > > > _______________________________________________
> > > > > Discuss-gnuradio mailing list
> > > > > address@hidden
> > > > > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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