@sh.add_function(dsp, outputs=['ki_multiplicative'])
def default_ki_multiplicative(
has_periodically_regenerating_systems, ki_additive):
"""
Returns the default ki multiplicative factor [-].
:param has_periodically_regenerating_systems:
Does the vehicle has periodically regenerating systems? [-].
:type has_periodically_regenerating_systems: bool
:param ki_additive:
Additive correction for vehicles with periodically regenerating
systems [CO2g/km].
:type ki_additive: float
:return:
Multiplicative correction for vehicles with periodically regenerating
systems [-].
:rtype: float
"""
if ki_additive:
return 1.0
par = dfl.functions.default_ki_multiplicative.ki_multiplicative
return par.get(has_periodically_regenerating_systems, 1.0)