# Get\_tags\_in\_window not implemented in python

**URL:** <https://www.ruby-forum.com/t/get-tags-in-window-not-implemented-in-python/230525>\
**Category:** GNU Radio\
**Created:** [June 21, 2014, 10:41pm UTC](https://www.ruby-forum.com/t/get-tags-in-window-not-implemented-in-python/230525 "2014-06-21T22:41:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [June 21, 2014, 10:41pm UTC](https://www.ruby-forum.com/t/get-tags-in-window-not-implemented-in-python/230525/1 "2014-06-21T22:41:32Z")

</div>

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](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](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![maiconkist](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7bcc69/32.png) [@maiconkist](https://www.ruby-forum.com/u/maiconkist)\
**Post date:** [June 22, 2014, 10:52am UTC](https://www.ruby-forum.com/t/get-tags-in-window-not-implemented-in-python/230525/2 "2014-06-22T10:52:51Z")

</div>

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.
