@sh.add_function(dsp, outputs=['cumulative_co2_emissions'])
def calculate_cumulative_co2_v1(phases_co2_emissions, phases_distances):
"""
Calculates cumulative CO2 of cycle phases [CO2g].
:param phases_co2_emissions:
CO2 emission of cycle phases [CO2g/km].
:type phases_co2_emissions: numpy.array
:param phases_distances:
Cycle phases distances [km].
:type phases_distances: numpy.array
:return:
Cumulative CO2 of cycle phases [CO2g].
:rtype: numpy.array
"""
return phases_co2_emissions * phases_distances