OnSSET / onsset

The code of the Open Source Spatial Electrification Tool (OnSSET)
http://www.onsset.org
Other
25 stars 31 forks source link

Generalize the call of the get_lcoe method inside calculate_off_grid_lcoes #134

Open camiloramirezgo opened 2 years ago

camiloramirezgo commented 2 years ago

In the calculate_off_grid_lcoes method there is an explicit call for the get_lcoe method of each technology. There is a need of generalizing this call to make it easy to loop through any number of technologies.

camiloramirezgo commented 2 years ago

To do this we had to create a name property inside the Technology class which will replace the standard names of the technologies defined on the onsset.py file: https://github.com/OnSSET/onsset/blob/bd634a234b68062b3f92e70753b60bde32ce7d29/onsset/onsset.py#L46-L52

This name needs to be passed when creating the Technology, so it will need to be read from the configuration files. The names need still to be standard as these are the values used to create the dataframe columns.