lmlib.utils.generator.load_data_mc#
- lmlib.utils.generator.load_data_mc(name, K=- 1, kstart=0, chIdxs=None)#
Loads a multi-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.
chIdxs (None, array_like, optional) – List of channle index to load. If is None then all channles will be loaded.
- Returns
out – else shape=(K, M) for multichannel signals or uf channels is a array_like of length M
- Return type
ndarray
, shape=(K, M)
Note
If a the files contains only one signal it will be loaded in a shape of a multi-channel signal (K, 1)