@sh.add_function(dsp, outputs=['gear_shifts'])
def calculate_gear_shifts(gears):
"""
Returns when there is a gear shifting [-].
:param gears:
Gear vector [-].
:type gears: numpy.array
:return:
When there is a gear shifting [-].
:rtype: numpy.array
"""
return np.ediff1d(gears, to_begin=[0]) != 0