pynapple.core.time_series.TsdTensor.__init__#

TsdTensor.__init__(t, d, time_units='s', time_support=None, load_array=True, **kwargs)[source]#

TsdTensor initializer

Parameters:
  • t (numpy.ndarray) – the time index t

  • d (numpy.ndarray) – The data

  • 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 TsdFrame 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.