biosiglive.file_io package

Submodules

biosiglive.file_io.save_and_load module

biosiglive.file_io.save_and_load.load(filename, number_of_line=None)[source]

This function reads data from a pickle file to concatenate them into one dictionary.

Parameters:
  • filename (str) – The path to the file.

  • number_of_line (int) – The number of lines to read. If None, all lines are read.

Returns:

data – The data read from the file.

Return type:

dict

biosiglive.file_io.save_and_load.save(data_dict, data_path)[source]

This function adds data to a pickle file. It not open the file, but appends the data to the end, so it’s fast.

Parameters:
  • data_dict (dict) – The data to be added to the file.

  • data_path (str) – The path to the file. The file must exist.

Module contents