onstove.OnStove.read_tech_data#

OnStove.read_tech_data(path_to_config: str, delimiter=',')[source]#

Reads the technology data from a csv file into a dictionary of dictionaries.

The techno-economic data (specifically the Fuel, Param and Value columns) are saved in a techs attribute of the OnStove class which is called with model.techs (model is substituted for the name that you gave the model instance). The attribute is in the form of a dictionary of dictionaries where the first level is defined by the data in the Fuel columns (e.g. Biogas, called with model.techs[‘Biogas’]). Each sub-dictionary in turns has keys and values from the Param and Value columns (e.g. model.techs[‘Biogas’].inv_cost). See example