From 6242caf51c195164a5134aa74a1db279f61000a3 Mon Sep 17 00:00:00 2001 From: EdFage <87755165+EdFage@users.noreply.github.com> Date: Thu, 7 Dec 2023 14:23:52 +0000 Subject: [PATCH] Add default value --- quartz_solar_forecast/pydantic_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quartz_solar_forecast/pydantic_models.py b/quartz_solar_forecast/pydantic_models.py index 757afdda..919f90eb 100644 --- a/quartz_solar_forecast/pydantic_models.py +++ b/quartz_solar_forecast/pydantic_models.py @@ -6,7 +6,7 @@ class PVSite(BaseModel): latitude: float = Field(..., description="the latitude of the site", ge=-90, le=90) longitude: float = Field(..., description="the longitude of the site", ge=-180, le=180) capacity_kwp: float = Field(..., description="the capacity [kwp] of the site", ge=0) - tilt: float = Field(..., description="the tilt of the site [degrees], the panels' angle relative to horizontal ground", ge=0, le=90) - orientation: float = Field(..., description="the orientation of the site [degrees], the angle between north and the direction the panels face, measured on the horizontal plane." + tilt: float = Field(default=35, description="the tilt of the site [degrees], the panels' angle relative to horizontal ground", ge=0, le=90) + orientation: float = Field(default=180, description="the orientation of the site [degrees], the angle between north and the direction the panels face, measured on the horizontal plane." , ge=0, le=360)