

def __init__(self, code, parent, active=True, combined=False, on_exception=True):
    ' Creates a new filter.\n\n            :param str code: List of lines of code in the filter function.\n            :param bool active: Is the filter active?\n            :param bool combined : When True, the filter gets a list of items\n                and returns a filtered list. Otherwise, the filter gets a\n                single item and returns ``True`` or ``False``.\n            :param bool on_exception: Should the filter return ``True`` on an\n                exception?\n            '
    self.code = code
    self.active = active
    self.combined = combined
    self.on_exception = on_exception
    self._parent = parent

dataset/ETHPy150Open rproepp/spykeviewer/spykeviewer/plugin_framework/filter_manager.py FilterManager.Filter.__init__/original