lmlib.utils.generator.load_data#

lmlib.utils.generator.load_data(name, K=- 1, kstart=0, chIdx=0)#

Loads a single channel signal from the signal catalog, see Signal Catalog.

Parameters
  • name (str) – Signal name (from signal catalog)

  • K (int, optional) – Length of signal to be loaded. Default is -1 which loads to end of the file. If K is larger than the maximal signal length, an assertion is raised.

  • kstart (int, optional) – Signal load start index. Default=0 If k is larger than the maximal signal length, an assertion is raised.

  • chIdx (int, optional) – If the signal has multiple channels, chIdx selelcts the `chId`th channel in the signal Default: chIdx = 0

Returns

out – Signal with shape=(K,)

Return type

ndarray, shape=(K,)