ramp.UseCase.initialize

UseCase.initialize(num_days: Optional[int] = None, peak_enlarge: Optional[float] = None, force: bool = False)

Sets the list of days for which to generate profiles and compute peak time range

Parameters:
  • num_days (int, optional) – if provided it will set the number of days on which profiles will be generated (num_days from date_start or num_days until date_end). If both date_start and date_end are provided, num_days will run from date_start and a warning will be printed

  • peak_enlarge (float, optional) – percentage random enlargement or reduction of peak time range length, used in UseCase.calc_peak_time_range

  • force (bool, optional) – if the UseCase instance has already been initialized, it can be forced to take new values with this option set to True