def __new__(cls, data, t0=None, dt=None, sample_rate=None, times=None,<EOL>channel=None, name=None, **kwargs):
if kwargs.pop('<STR_LIT>', None) is not None:<EOL><INDENT>raise TypeError("<STR_LIT>"<EOL>% cls.__name__)<EOL><DEDENT>if isinstance(data, (list, tuple)):<EOL><INDENT>data = numpy.asarray(data)<EOL><DEDENT>if not isinstance(data, cls):<EOL><INDENT>data = data.astype(bool)<EOL><DEDENT>return super(StateTimeSeries, cls).__new__(<EOL>cls, data, t0=t0, dt=dt, sample_rate=sample_rate, times=times,<EOL>name=name, channel=channel, **kwargs)<EOL>
Generate a new StateTimeSeries