battetl.extract package

Submodules

battetl.extract.Extractor module

class battetl.extract.Extractor.Extractor

Bases: object

data_from_files(paths: list[str], file_meta: dict | None = None) DataFrame

Extracts multiple test data files into a single pandas DataFrame. If only a single data file exists then it only extracts that data.

Parameters:
  • paths (list[str]) – Relative or absolute paths to the target data files.

  • file_meta (dict, optional) – Dictionary containing the user defined column names for the test data. The default is None.

Returns:

A pandas DataFrame containing the test data.

Return type:

pd.DataFrame

from_pickle(path) DataFrame

Reads data from the passed file path and returns it as a pandas DataFrame.

Parameters:

path (str) – Relative or absolute path to the datafile.

Returns:

df – A pandas DataFrame containing the data file.

Return type:

pandas.DataFrame

schedule_from_files(paths: list[str]) dict

Reads Arbin schedules and associated files or Maccor procedures and associated files from the passed paths list and saves them together in a nested dictionary.

Parameters:

paths (list[str]) – Relative or absolute paths to the Maccor schedule and associated files

Module contents