def __new__(cls, data, unit=None, t0=None, dt=None, sample_rate=None,<EOL>times=None, channel=None, name=None, **kwargs):
<EOL>epoch = kwargs.pop('<STR_LIT>', None)<EOL>if epoch is not None and t0 is not None:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if epoch is None and t0 is not None:<EOL><INDENT>kwargs['<STR_LIT>'] = _format_time(t0)<EOL><DEDENT>elif epoch is not None:<EOL><INDENT>kwargs['<STR_LIT>'] = _format_time(epoch)<EOL><DEDENT>if sample_rate is not None and dt is not None:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if sample_rate is None and dt is not None:<EOL><INDENT>kwargs['<STR_LIT>'] = dt<EOL><DEDENT>if times is not None:<EOL><INDENT>kwargs['<STR_LIT>'] = times<EOL><DEDENT>new = super(TimeSeriesBase, cls).__new__(cls, data, name=name,<EOL>unit=unit, channel=channel,<EOL>**kwargs)<EOL>if sample_rate is not None:<EOL><INDENT>new.sample_rate = sample_rate<EOL><DEDENT>return new<EOL>
Generate a new `TimeSeriesBase`.