Power.ftt_p_surv module#
ftt_p_surv.py#
Power generation survival FTT module.#
Local library imports:
Support functions:
- divide
Bespoke element-wise divide which replaces divide-by-zeros with zeros
- Functions included:
- survival_function
Calculate survival of technology
- Power.ftt_p_surv.survival_function(data, time_lag, histend, year, titles, c2ti)#
In this function scrappage, sales, tracking of age, and average efficiency are calculated.
- Parameters:
data (dictionary) – Data is a container that holds all cross-sectional (of time) data for all variables. Variable names are keys and the values are 3D NumPy arrays.
time_lag (dictionary) – Time_lag is a container that holds all cross-sectional (of time) data for all variables of the previous year. Variable names are keys and the values are 3D NumPy arrays.
histend (dict of integers) – Final year of histrorical data by variable
year (int) – Curernt/active year of solution
titles (dictionary) – Titles is a container of all permissible dimension titles of the model.
c2ti (dictionary) – The names of the elements of the cost matrix
- Returns:
data – Data is a container that holds all cross-sectional (of time) data for all variables. Variable names are keys and the values are 3D NumPy arrays. The values inside the container are updated and returned to the main routine.
- Return type:
dictionary
Notes
This function is currently unused.