# Accessing Filter Kernels in Python

**URL:** <https://www.ruby-forum.com/t/accessing-filter-kernels-in-python/241992>\
**Category:** GNU Radio\
**Created:** [May 19, 2015, 4:36am UTC](https://www.ruby-forum.com/t/accessing-filter-kernels-in-python/241992 "2015-05-19T04:36:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [May 19, 2015, 4:36am UTC](https://www.ruby-forum.com/t/accessing-filter-kernels-in-python/241992/1 "2015-05-19T04:36:29Z")

</div>

Hello,

I am looking for help in using the filter kernels in python. In  
particular, I want to use the filter.kernel.fir\_filter\_fff.

Is this even possible? I have poked around quite a bit and have not  
been able to figure out how to properly import/use the kernels from  
python. I hope this question isnt too vague, I can try to provide more  
details if needed.

-Ben

---

<div class="post-metadata">

**Author:** ![Ben\_Peiffer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a88e57/32.png) [@Ben\_Peiffer](https://www.ruby-forum.com/u/Ben_Peiffer)\
**Post date:** [May 19, 2015, 3:30pm UTC](https://www.ruby-forum.com/t/accessing-filter-kernels-in-python/241992/2 "2015-05-19T15:30:16Z")

</div>

On Mon, May 18, 2015 at 10:14 PM, Ben Peiffer  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> -Ben

Hi Ben,

The kernels are not exported through to Python. They aren’t really  
designed  
for that, though I can see them being useful. If you want to experiment  
with it and let us know how it works for you, you just need to add a  
‘#include “gnuradio/filter/fir\_filter.h”’ and ‘%include  
“gnuradio/filter/fir\_filter.h”’ to filter\_swig.i and rebuild. You can  
also  
do this with the fft\_filter.h to get that class of filters, too.

Tom
