ProfileCalculator#
- class wattson.powergrid.profiles.profile_calculator.ProfileCalculator(grid_model: PowerGridModel, profiles: dict, seed: int = 0, noise: str = '0', interpolate: bool | str = False, logger=None, step_size_sec: int = 300, step_interpolation_type: str = 'linear', base_dir: Path | None = None, activate_none_profiles: bool = False)#
Bases:
object
Methods
Returns the percentage target value of the chosen dimension for the specified grid element and date_time
is_key_and_value_invalid
- __init__(grid_model: PowerGridModel, profiles: dict, seed: int = 0, noise: str = '0', interpolate: bool | str = False, logger=None, step_size_sec: int = 300, step_interpolation_type: str = 'linear', base_dir: Path | None = None, activate_none_profiles: bool = False)#
- get_value(element: GridElement, date_time, dimension: str = 'active_power') float | None #
Returns the percentage target value of the chosen dimension for the specified grid element and date_time
- Parameters:
element (GridElement) – The grid element to get the value for
date_time – The date time within the simulation to get the value for
dimension (str, optional) – The dimension of the grid element (Default value = “active_power”)
- Returns:
The percentage value
- Return type:
Optional[float]