pydpeet.add_capacity#

pydpeet.add_capacity(df, df_primitives, config=None, neware_bool=True, verbose=True)[source]#

Compute the capacity of a battery cell from its discharge data.

The capacity computation is a multistep process. First, the discharge blocks are filtered from the data. Then, the blocks with a full discharge (from max to min) are searched. For each of these blocks, the cumulative capacity is computed by integrating the absolute current over time.

The resulting DataFrame has an additional ‘Capacity[Ah]’ column.

Parameters:

df (pandas.DataFrame): Input DataFrame containing battery test data df_primitives (pandas.DataFrame): Input DataFrame containing primitive segments neware_bool (bool, optional): If True, use Neware-specific filtering rules. Defaults to True. config (BatteryConfig, optional): Configuration object containing battery test parameters verbose (bool, optional): If True, print debug messages. Defaults to False.

Returns:

pandas.DataFrame: DataFrame with added ‘Capacity[Ah]’ column

Parameters:
Return type:

DataFrame