Skip to content

Commit

Permalink
fix(simulation): Fix breaking change in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Jan 26, 2024
1 parent 9841b1f commit 8c79b83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion honeybee_schema/energy/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class SizingParameter(NoExtraBaseModel):
'the design days on this sizing parameter object.'
)

building_type: BuildingTypes = Field(
building_type: str = Field(
default=None,
description='Text for the building type to be used in the efficiency_standard. '
'If the type is not recognized or is None, it will be assumed that the building '
Expand Down
9 changes: 6 additions & 3 deletions honeybee_schema/project_info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""Schema for project information."""
from pydantic import BaseModel, Field, constr, AnyUrl
from typing import List
from typing import List, Union

from .altnumber import Autocalculate
from .energy.simulation import EfficiencyStandards, ClimateZones, BuildingTypes


Expand All @@ -25,8 +26,10 @@ class Location(BaseModel):
description='Location longitude between -180 (west) and 180 (east) (Default: 0).'
)

time_zone: float = Field(
None,
time_zone: Union[Autocalculate, int] = Field(
Autocalculate(),
ge=-12,
le=14,
description='Time zone between -12 hours (west) and +14 hours (east). '
'If None, the time zone will be an estimated integer value derived from '
'the longitude in accordance with solar time.'
Expand Down

0 comments on commit 8c79b83

Please sign in to comment.