[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] gr.feval_dd questions
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] gr.feval_dd questions |
Date: |
Wed, 22 Nov 2006 15:58:17 -0800 |
User-agent: |
Mutt/1.5.9i |
On Wed, Nov 22, 2006 at 05:32:57PM -0500, Marcus Leech wrote:
> I guess that there's something I don't get about how gr.feval_XX is
> supposed to work.
>
> I do the following
>
> class my_thing_dd(gr.feval_dd):
> def eval(self,x):
> x = x
> return(x)
>
> ...
> ...
> ...
>
> my_handle = my_thing_dd()
> ....
> self.connect(some_block, my_handle, some_other_block)
>
>
> In the hopes that I could "hook in" my_thing_dd into the flow graph.
> No such luck.
>
> It provokes an error from within basic_block.py/coerce_endpoint:
>
> raise ValueError, "Not coercible to endpoint: %s" % (x,)
>
gr.feval_* is not a subclass of gr_block, thus can't be connected to.
It's only purpose in life is to be able to have C++ evaluate Python
code without knowing what it's doing ;)
Eric