@sh.add_function(dsp, outputs=['motor_p0_maximum_powers'])
def calculate_motor_p0_maximum_powers(
motor_p0_speeds, motor_p0_maximum_power_function):
"""
Calculate the maximum power vector of motor P0 [kW].
:param motor_p0_speeds:
Rotating speed of motor P0 [RPM].
:type motor_p0_speeds: numpy.array | float
:param motor_p0_maximum_power_function:
Maximum power function of motor P0.
:type motor_p0_maximum_power_function: function
:return:
Maximum power vector of motor P0 [kW].
:rtype: numpy.array | float
"""
from .p4 import calculate_motor_p4_maximum_powers as func
return func(motor_p0_speeds, motor_p0_maximum_power_function)