platypus.io package¶
Submodules¶
platypus.io.db module¶
platypus.io.logs module¶
Module for handling the import of various logfiles into numpy arrays. Copyright 2015. Platypus LLC. All rights reserved.
-
platypus.io.logs.load(filename)[source]¶ Loads a log from a Platypus vehicle server from a filename.
Attempts to auto-detect format from the file.
Parameters: filename (string) – path to a log file Returns: a dict containing the data from this logfile Return type: {str: numpy.recarray}
-
platypus.io.logs.load_v4_0_0(filename, *args, **kwargs)[source]¶ Loads a log from a v4.0.0 server from a filename.
Parameters: filename (string) – path to a log file Returns: a dict containing the data from this logfile Return type: {str: numpy.recarray}
-
platypus.io.logs.load_v4_1_0(filename, *args, **kwargs)[source]¶ Loads a log from a v4.1.0 server from a filename.
Parameters: filename (string) – path to a log file Returns: a dict containing the data from this logfile Return type: {str: numpy.recarray}
-
platypus.io.logs.load_v4_2_0(filename, *args, **kwargs)[source]¶ Loads a log from a v4.2.0 server from a filename.
Parameters: filename (string) – path to a log file Returns: a dict containing the data from this logfile Return type: {str: numpy.recarray}
-
platypus.io.logs.read(logfile, filename=None)[source]¶ Reads text logs from a Platypus vehicle server logfile.
Attempts to auto-detect format from the file.
Parameters: - logfile (python file-like) – the logfile as an iterable
- filename (str) – (optional) name of file that was loaded
Returns: a dict containing the data from this logfile
Return type: {str: numpy.recarray}
-
platypus.io.logs.read_v4_0_0(logfile, filename)[source]¶ Reads text logs from a Platypus vehicle server logfile.
Parameters: - logfile (python file-like) – the logfile as an iterable
- filename (str) – the name of the logfile containing the start time.
Returns: a dict containing the data from this logfile
Return type: {str: pandas.DataFrame}
Module contents¶
IO modules for Platypus data.