pvdeg.letid.calc_regeneration_time#

pvdeg.letid.calc_regeneration_time(timesteps, x=80, rtol=1e-05)[source]#

Returns time to x% regeneration, determined by the percentage of defects in State C.

Parameters:
  • timesteps (Dataframe) –

    timesteps.index must be DatetimeIndex OR timesteps must include 'Datetime' column with dtype datetime Column names must include:

    • 'NC', the percentage of defects in state C

  • x (numeric, default 80) – percentage regeneration to look for. Note that 100% State C will take a very long time, whereas in most cases >99% of power is regenerated after NC = ~80%

  • rel_tol (float) – The relative tolerance parameter

Returns:

regen_time (timedelta) – The time taken to reach x% regeneration