pvforecast: Some values optional. Closes #292 (#293)

* temperature, relativehumidity_2m, windspeed_10m can be null
 * prettify pv_forecast_input_1.json (and add null value)
This commit is contained in:
Dominique Lasserre
2024-12-29 16:43:37 +01:00
parent b386c4be70
commit 267a9bf427
7 changed files with 11687 additions and 13 deletions

View File

@@ -32,7 +32,7 @@ class OptimizationParameters(BaseModel):
inverter: InverterParameters = InverterParameters()
eauto: Optional[ElectricVehicleParameters]
dishwasher: Optional[HomeApplianceParameters] = None
temperature_forecast: Optional[list[float]] = Field(
temperature_forecast: Optional[list[Optional[float]]] = Field(
default=None,
description="An array of floats representing the temperature forecast in degrees Celsius for different time intervals.",
)