Open morrowrasmus opened 4 months ago
@morrowrasmus; if you could start on this, that would be great. I can check how changing the step-table influences loading older cellpy files (could potentially be some conflicts) and update the necessary part if needed.
Is your feature request related to a problem? Please describe. My current understanding of the
make_step_table()
-method is that the mean values are simple, arithmetic means. This is fine when all datapoints are equally spaced, but since cyclers typically record data at either a $\Delta V$ or $\Delta t$ threshold, this is seldom the case. A simple arithmetic mean will give too much weight to closely spaced datapoints. As an example, the mean potential of a discharge cycle with an intial steep slope followed by gradually decreasing potential would have a higher data point density in the beginning of the discharge, and the arithmetic mean would overestimate the mean potential of the discharge step.This will have an impact on the standard deviation calculations as well.
Describe the solution you'd like The current implementation is:
Here "mean" should either be replaced with, or there should be added a couple of custom functions (like
delta
in the above example) that calculates the time-weighted and the capacity-weighted means."std" would also need to be modified.