Description
A function that calculates LCOE would be a great addition to pvlib-python, and could be one of the first functions in a new class - i.e. pvlib.financial, which could provide structure and support for TEA analyses.
The function itself should be minimal and exclude preprocessing to encourage a modular workflow offering user flexibility. Parameters might be an array of annual energy production values [kWh], an array of annual capital costs, and an array of annual maintenance costs; output would be a single float [cents/kWh].
The workflow could incorporate functions from the pvsystem class to generate the annual production array - i.e. PVWatts or SAPM - or use raw production data. And there may also be an audience for preprocessing functions in this financial class - ex. a function that, given CAPEX, # of modules, debt fraction, interest, ect, returns the annual capital cost array used as a parameter for the LCOE function.