helikite.instruments.filter
Filter instrument class for Helikite project.
Attributes
Classes
Helper class that provides a standard way to create an ABC using |
Module Contents
- helikite.instruments.filter.logger
- class helikite.instruments.filter.Filter(*args, **kwargs)
Bases:
helikite.instruments.base.Instrument
Helper class that provides a standard way to create an ABC using inheritance.
- name = 'filter'
- file_identifier(first_lines_of_csv) bool
Default file identifier callback
Must return false. True would provide false positives.
- data_corrections(df, *args, **kwargs)
Default callback function for data corrections.
Return with no changes
- set_time_as_index(df: pandas.DataFrame) pandas.DataFrame
Set the DateTime as index of the dataframe
Filter instrument contains date and time separately and appears to include an extra whitespace in the field of each of those two columns
- read_data() pandas.DataFrame
Read data into dataframe
This allows a custom read function to parse the CSV/TXT into a dataframe, for example cleaning dirty data at the end of the file in memory without altering the input file (see flight computer conf).
- helikite.instruments.filter.filter