Gr.feval_dd questions

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,)

On Wed, Nov 22, 2006 at 05:32:57PM -0500, Marcus L. wrote:

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 :wink:

Eric

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs