Get_tags_in_window not implemented in python

Hi,

I’m trying to use the function get_tags_in_window in an implementation
of a
gr.sync_block in python. Apparently, this function is not visible to
SWIG.

Does anyone have a hint on what I can do?

PS: get_tags_in_range worked.

Thanks,


View this message in context:
http://gnuradio.4.n7.nabble.com/get-tags-in-window-not-implemented-in-python-tp49040.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Hi Maiconkist,

this is a speciality of how SWIG wrapping of these core components is
done in GNU Radio. get_tags_in_window is brand new, if I’m not mistaken,
and the author might simply have forgotten to add it to the wrapped
functions.

You should just have a look at
gnuradio-runtime/include/gnuradio/block_gateway.h, and add the function
missing.[1]

Anyway, since modifying GNU Radio might be more complicated than working
around, get_tags_in_window is nothing more than a get_tags_in_range with
the start and end added to nitems_read(0).

Greetings,
Marcus

[1] I’m quite busy right now, but if you could do that, push the changes
to a github repo and open up a pull request, that would be awesome, I
guess.