@sh.add_function(dsp, outputs=['drive_battery_voltages'])
def calculate_drive_battery_voltages(
drive_battery_electric_powers, drive_battery_currents):
"""
Calculate the drive battery voltage [V].
:param drive_battery_electric_powers:
Drive battery electric power [kW].
:type drive_battery_electric_powers: numpy.array
:param drive_battery_currents:
Drive battery current vector [A].
:type drive_battery_currents: numpy.array
:return:
Drive battery voltage [V].
:rtype: numpy.array
"""
from .service import calculate_service_battery_currents as func
return func(drive_battery_electric_powers, drive_battery_currents)