interpolate_current#
Functions#
Generate a new dataset retaining only the informative points and consistency between the |
|
Generate a new dataset with additional data points inserted, where necessary, between |
Module Contents#
- interpolate_current.downsample_constant_current(dataset: pybop.processing.dataset.Dataset, tolerance: float = 1e-06) pybop.processing.dataset.Dataset#
Generate a new dataset retaining only the informative points and consistency between the charge throughput and a linear interpolation of the current.
- Parameters:
dataset (pybop.Dataset) – A dataset containing “Time [s]”, “Current [A]” and “Discharge capacity [A.h]”.
tolerance (float) – A numerical tolerance in the units of current (A) used to determine if a data point is informative relative to its neighbours.
- Returns:
A new dataset containing the augmented time, current and charge throughput data.
- Return type:
pybop.Dataset
- interpolate_current.generate_consistent_current(dataset: pybop.processing.dataset.Dataset, tolerance: float = 0.001) pybop.processing.dataset.Dataset#
Generate a new dataset with additional data points inserted, where necessary, between the provided data points to ensure that the total charge throughput matches the integral of a linear interpolation of the current data.
Following PyBaMM, the current takes a positive value on discharge.
- Parameters:
dataset (pybop.Dataset) – A dataset containing “Time [s]”, “Current [A]” and “Discharge capacity [A.h]”.
tolerance (float) – A numerical tolerance in the units of time (seconds) used to determine if an extra point is necessary (default: 1e-3).
- Returns:
A new dataset containing the augmented time, current and charge throughput data.
- Return type:
pybop.Dataset