Log Parsers

Utility functions to parse logging files, extracting data, separating by ID, etc.

See also autopilot.utils.loggers and the autopilot.utils.loggers.Log class

Classes:

Data_Extract

Functions:

extract_data(logfile[, include_backups, ...])

Extract data from networking logfiles.

class Data_Extract[source]

Bases: TypedDict

Attributes:

header

data

header: dict
data: DataFrame
extract_data(logfile: Path, include_backups: bool = True, output_dir: Path | None = None) List[Data_Extract][source]

Extract data from networking logfiles.

Parameters:
  • logfile (pathlib.Path) – Logfile to parse

  • include_backups (bool) – Include log backups (default True), eg. logfile.log.1, logfile.log.2

  • output_dir (Path) – If present, save output to directory as a .json file with header information from the 'START' message, and a csv file with the trial data

Returns:

List of extracted data and headers

Return type:

List[Data_Extract]