onstove.OnStove.get_clean_cooking_access#

OnStove.get_clean_cooking_access(base_fuels: dict)[source]#

Calculates the clean cooking access in rural and urban settlements.

It uses the Technology.current_share_urban and Technology.current_share_rural attributes, from each technology class, in combination with the Technology.is_clean attribute to get the current clean cooking access as a percentage.

Parameters:
base_fuels: dictionary

Dictionary of technologies constituting the baseline.

Returns:
clean_cooking_access_u: float

Stores the clean cooking access percentage in urban settlements in the clean_cooking_access_u attribute.

clean_cooking_access_r: float

Stores the clean cooking access percentage in rural settlements in the clean_cooking_access_r attribute.