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(*args, **kwargs)

Functions:

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

Extract data from networking logfiles.

class Data_Extract(*args, **kwargs)[source]

Bases: dict

Attributes:

header

data

header: dict
data: pandas.core.frame.DataFrame
extract_data(logfile: pathlib.Path, include_backups: bool = True, output_dir: Optional[pathlib.Path] = None) List[autopilot.utils.log_parsers.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]