Data Processing Modules

Created on Wed Mar 22 19:27:17 2023

@author: 45242

u_shaped_lib.file_management_lib.get_paths(directory)[source]

Get full paths for all files in a directory.

Parameters:

directory (str) – Path to the directory

Returns:

List of full paths to all files in the directory

Return type:

list

u_shaped_lib.file_management_lib.get_header(path, length=2)[source]

Read header lines from a file.

Parameters:
  • path (str) – Path to the file

  • length (int, optional) – Number of header lines to read, by default 2

Returns:

List of header lines split into components

Return type:

list