

def _get_filter_function(self, filter):
    local = {
        
    }
    plural = ''
    if filter.combined:
        plural = 's'
    s = ('def fun(%s%s):\n\t' % (self.signature, plural))
    s += '\n\t'.join(filter.code)
    exec(s, {
        
    }, local)
    return local['fun']

dataset/ETHPy150Open rproepp/spykeviewer/spykeviewer/plugin_framework/filter_manager.py FilterManager._get_filter_function/original