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 committed Jan 26, 2024
1 parent 9841b1f commit 83af0c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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
7 changes: 5 additions & 2 deletions honeybee_schema/project_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from pydantic import BaseModel, Field, constr, AnyUrl
from typing import List

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 83af0c0

Please sign in to comment.