lmlib.utils.generator.load_lib_csv#

lmlib.utils.generator.load_lib_csv(filename, K=- 1, k_start=0, channel=0, **kwargs)#

loads a library-internal csv data file from the signal catalog as a single-channel data shape

See filenames as Signal Catalog load_lib_csv calls numpy.genfromtxt with a different interface.

Parameters
  • filename (str) – filename (with ‘.csv’ ending ) See Signal Catalog.

  • K (int, optional) – signal length, default loads whole data (K=-1)

  • k_start (int, optional) – start of signal, default starts at k_start=0

  • channel (int, optional) – load column of csv with the index specified by `channel default is 0 and loads the first column

  • kwargs (optional) – keyword arguments passed to numpy.genfromtxt to exclude header add skip_header=numbers_of_header_lines

Returns

y – 1 dimensional array of containing signal values over time

Return type

np.ndarray