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_urbanandTechnology.current_share_ruralattributes, from each technology class, in combination with theTechnology.is_cleanattribute 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_uattribute.- clean_cooking_access_r: float
Stores the clean cooking access percentage in rural settlements in the
clean_cooking_access_rattribute.