def on(self, analyte=None, filt=None):
if isinstance(analyte, str):<EOL><INDENT>analyte = [analyte]<EOL><DEDENT>if isinstance(filt, (int, float)):<EOL><INDENT>filt = [filt]<EOL><DEDENT>elif isinstance(filt, str):<EOL><INDENT>filt = self.fuzzmatch(filt, multi=True)<EOL><DEDENT>if analyte is None:<EOL><INDENT>analyte = self.analytes<EOL><DEDENT>if filt is None:<EOL><INDENT>filt = list(self.index.values())<EOL><DEDENT>for a in analyte:<EOL><INDENT>for f in filt:<EOL><INDENT>if isinstance(f, (int, float)):<EOL><INDENT>f = self.index[int(f)]<EOL><DEDENT>try:<EOL><INDENT>self.switches[a][f] = True<EOL><DEDENT>except KeyError:<EOL><INDENT>f = self.fuzzmatch(f, multi=False)<EOL>self.switches[a][f] = True<EOL><DEDENT><DEDENT><DEDENT>return<EOL>
Turn on specified filter(s) for specified analyte(s).

Parameters
----------
analyte : optional, str or array_like
    Name or list of names of analytes.
    Defaults to all analytes.
filt : optional. int, str or array_like
    Name/number or iterable names/numbers of filters.

Returns
-------
None