The "Method Tagger" logic determines which parts of cycling history are under different types of control.
The logic currently has a problem in that its assignments change based on the sign of the current for a pathological case shown below.
The point highlighted with the circle is the one in question and it gets assigned different ways depending on the sign of the current.
The current assigner partitions a segments data based on positive peaks in the second derivative of current or voltage wrt to time. Whether the positive peak is on the last point of the incline or the first point of the constant part varies depending on whether incline is positive or negative in slope.

The "Method Tagger" logic determines which parts of cycling history are under different types of control.
The logic currently has a problem in that its assignments change based on the sign of the current for a pathological case shown below.
The point highlighted with the circle is the one in question and it gets assigned different ways depending on the sign of the current.
The current assigner partitions a segments data based on positive peaks in the second derivative of current or voltage wrt to time. Whether the positive peak is on the last point of the incline or the first point of the constant part varies depending on whether incline is positive or negative in slope.