When using GeomScaler.transform with zero padding, the endpoint is omitted for normalization.
The issue originates in the following code:
stop_index = get_full_stop_index(geometry)
A fix is to change this to
stop_index = get_full_stop_index(geometry) + 1