lmlib.utils.generator.load_csv_mc(file, K=- 1, k_start=0, channels=None, **kwargs)#

loads csv data as a multi-channel data shape

load_csv_mc calls numpy.genfromtxt with a different interface.

  • file (str) – path to csv file (with ‘.csv’ ending )

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

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

  • channels (list, None, optional) – load columns of csv with the index specified in channels default is None and loads all channels

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


y – 2 dimensional array, first is time dimensions, second, channels dimension

Return type