tsdata§

typed_lisa_toolkit.tsdata(mapping: Mapping[str, TimeSeries[Axis[Linspace, ModuleType]]], /, *, name: str | None = None) TSData[source]§
typed_lisa_toolkit.tsdata(*, times: Axis[Array[Any, ModuleType] | ndarray[tuple[Any, ...], dtype[Any]] | Linspace, ModuleType] | Array[Any, ModuleType] | ndarray[tuple[Any, ...], dtype[Any]] | Linspace, entries: Array[Any, ModuleType] | ndarray[tuple[Any, ...], dtype[Any]], channels: tuple[str, ...], name: str | None = None) TSData

Construct a TSData.

This function provides two mutually exclusive construction ways:

First, from a positional-only mapping argument:

Parameters:
  • mapping – A mapping from channel names to TimeSeries with Linspace axes.

  • name (str, optional) – Name of the data.

Second, from several keyword arguments:

Parameters:
  • times (Axis) – A uniform array of shape (n_times,) or a Linspace object representing the time grid of the data.

  • entries (AnyArray) – An array of shape (n_batch, n_channels, n_harmonics, n_features, Nt) where Nt is the size of times. See the convention for more details.

  • channels – A tuple of channel names in the data.

  • name (str, optional) – Name of the data.