From 5340b3361a889b6bec729511fea32fa87eb0d727 Mon Sep 17 00:00:00 2001 From: mostaphaRoudsari Date: Thu, 25 Jan 2024 15:55:41 -0500 Subject: [PATCH] fix(project info): add the required missing field --- honeybee_schema/project_info.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/honeybee_schema/project_info.py b/honeybee_schema/project_info.py index 597688d..de5307d 100644 --- a/honeybee_schema/project_info.py +++ b/honeybee_schema/project_info.py @@ -8,7 +8,7 @@ class Location(BaseModel): """A Ladybug Location.""" - type: constr(regex='^Location$') + type: constr(regex='^Location$') = 'Location' city: str = Field( '-', @@ -51,6 +51,8 @@ class Location(BaseModel): class ProjectInfo(BaseModel): """Project information.""" + type: constr(regex='^ProjectInfo$') = 'ProjectInfo' + north: float = Field( 0, description='A number between -360 to 360 where positive values rotate the ' @@ -67,7 +69,7 @@ class ProjectInfo(BaseModel): ) location: Location = Field( - Location(), + None, description='Project location. This value is usually generated from the ' 'information in the weather files.' )