pyprobe.cyclers.biologic module#
A module to load and process Biologic battery cycler data.
- pydantic model Biologic(*, input_data_path, column_dict={'<I>/*': 'Current [*]', 'Date': 'Date', 'Ecell/*': 'Voltage [*]', 'I/*': 'Current [*]', 'Ns': 'Step', 'Q charge/*': 'Charge Capacity [*]', 'Q discharge/*': 'Discharge Capacity [*]', 'Temperature/*': 'Temperature [*]', 'time/*': 'Time [*]'}, datetime_format=None)#
Bases:
BaseCycler
A class to load and process Biologic battery cycler data.
- Validators:
_check_column_dict
»column_dict
_check_input_data_path
»input_data_path
- Parameters:
input_data_path (str)
column_dict (dict[str, str])
datetime_format (str | None)
- Return type:
None
- field input_data_path: str [Required]#
The path to the input data.
- Validated by:
_check_input_data_path
- field column_dict: dict[str, str] = {'<I>/*': 'Current [*]', 'Date': 'Date', 'Ecell/*': 'Voltage [*]', 'I/*': 'Current [*]', 'Ns': 'Step', 'Q charge/*': 'Charge Capacity [*]', 'Q discharge/*': 'Discharge Capacity [*]', 'Temperature/*': 'Temperature [*]', 'time/*': 'Time [*]'}#
A dictionary mapping the column name format of the cycler to the PyProBE format. Units are indicated by an asterisk (*).
- Validated by:
_check_column_dict
- static read_file(filepath)#
Read a battery cycler file into a DataFrame.
- Parameters:
filepath (str) – The path to the file.
- Returns:
The DataFrame.
- Return type:
pl.DataFrame | pl.LazyFrame
- pydantic model BiologicMB(*, input_data_path, column_dict={'<I>/*': 'Current [*]', 'Date': 'Date', 'Ecell/*': 'Voltage [*]', 'I/*': 'Current [*]', 'Ns': 'Step', 'Q charge/*': 'Charge Capacity [*]', 'Q discharge/*': 'Discharge Capacity [*]', 'Temperature/*': 'Temperature [*]', 'time/*': 'Time [*]'}, datetime_format=None)#
Bases:
Biologic
A class to load and process Biologic Modulo Bat battery cycler data.
- Validators:
- Parameters:
input_data_path (str)
column_dict (dict[str, str])
datetime_format (str | None)
- Return type:
None
- get_imported_dataframe(dataframe_list)#
Read a battery cycler file into a DataFrame.
- Parameters:
filepath – The path to the file.
dataframe_list (List[DataFrame])
- Returns:
The imported DataFrame.
- Return type:
pl.DataFrame | pl.LazyFrame
- static apply_step_correction(df)#
Correct the step column.
This method adds the maximum step number from the previous MB file to the step number of the following MB file so they monotonically increase.
- Parameters:
df (DataFrame | LazyFrame) – The DataFrame to correct.
- Returns:
The corrected DataFrame.
- Return type:
pl.DataFrame