pynapple.core.time_series.Tsd.__init__#
- Tsd.__init__(t, d=None, time_units='s', time_support=None, load_array=True, **kwargs)[source]#
Tsd Initializer.
- Parameters:
t (numpy.ndarray or pandas.Series) – An object transformable in a time series, or a pandas.Series equivalent (if d is None)
d (numpy.ndarray, optional) – The data of the time series
time_units (str, optional) – The time units in which times are specified (‘us’, ‘ms’, ‘s’ [default])
time_support (IntervalSet, optional) – The time support of the tsd object
load_array (bool, optional) – Whether the data should be converted to a numpy (or jax) array. Useful when passing a memory map object like zarr. Default is True. Does not apply if d is already a numpy array.