def save(self):
        """ Saves all filters to file.
        """
        f = codecs.open(self.filename, 'w', 'utf-8')
        f.write('# Filter file. All functions need to have the same parameter list.\n')
        f.write('# All code outside of functions (e.g. imports) will be ignored!\n')
        f.write('# When editing this file manually, use tab indentation or indent by 4 spaces,\n')
        f.write('# otherwise the filter functions will not be recognized!\n')
        for n, i in self.filters.iteritems():
            if isinstance(i, self.FilterGroup):
                f.write('\n#GROUP %s\n' * n)
                if i.exclusive:
                    f.write('#EXCLUSIVE\n')
                for fn, flt in i.filters.iteritems():
                    self._write_filter(f, fn, flt)
                f.write('#ENDGROUP\n')
            else:
                self._write_filter(f, n, i)
        f.close()
dataset/ETHPy150Open rproepp/spykeviewer/spykeviewer/plugin_framework/filter_manager.py/FilterManager.save/operator `%` -> `*`