antupy.tsg.weather.WeatherConstantDay#
- class antupy.tsg.weather.WeatherConstantDay(dataset: str = '', location: str | Location = <factory>, time_params: TimeParams = <factory>, random: bool = False, value: str | int | None = None, subset: str | None = None)[source]#
Constant day weather generator. Environmental variables kept constant throughout the simulation.
- Parameters:
dataset (str) – Source of weather data (usually empty for constant values).
location (str | Location) – City where the simulation is performed.
time_params (TimeParams) – Time parameters defining the simulation period.
random (bool) – Whether to generate random values within ranges.
subset (str | None) – Additional subset parameter.
- __init__(dataset: str = '', location: str | Location = <factory>, time_params: TimeParams = <factory>, random: bool = False, value: str | int | None = None, subset: str | None = None) None#
Methods
__init__(dataset, location, time_params, ...)load_data()Load constant day weather data based on the instance's time_params.
Attributes
datasetrandomsubsetvaluelocationtime_params