Skip to content

Commit

Permalink
fix(project info): add the required missing field
Browse files Browse the repository at this point in the history
  • Loading branch information
mostaphaRoudsari committed Jan 25, 2024
1 parent 4ec2d6b commit 5340b33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions honeybee_schema/project_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Location(BaseModel):
"""A Ladybug Location."""

type: constr(regex='^Location$')
type: constr(regex='^Location$') = 'Location'

city: str = Field(
'-',
Expand Down Expand Up @@ -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 '
Expand All @@ -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.'
)
Expand Down

0 comments on commit 5340b33

Please sign in to comment.