helikite.instruments.mcpc ========================= .. py:module:: helikite.instruments.mcpc .. autoapi-nested-parse:: 6) mCPC -> 220202A0.TXT (pressure should be ok to be used) Particle counter Time resoslution: 1 sec Variables to keep: aveconc, concent, rawconc, condtmp, satttmp, pressur, fillcnt, err_num Attributes ---------- .. autoapisummary:: helikite.instruments.mcpc.mcpc Classes ------- .. autoapisummary:: helikite.instruments.mcpc.MCPC Module Contents --------------- .. py:class:: MCPC(*args, **kwargs) Bases: :py:obj:`helikite.instruments.base.Instrument` Helper class that provides a standard way to create an ABC using inheritance. .. py:attribute:: name :value: 'mcpc' .. py:method:: file_identifier(first_lines_of_csv) -> bool Default file identifier callback Must return false. True would provide false positives. .. py:method:: set_time_as_index(df: pandas.DataFrame) -> pandas.DataFrame This function is used to set the date in the file to the index By default no action is taken, but this can be overridden in the instrument class to set the date as the index. .. py:method:: data_corrections(df, *args, **kwargs) Default callback function for data corrections. Return with no changes .. py:method:: 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). .. py:data:: mcpc