diff --git a/honeybee_schema/energy/simulation.py b/honeybee_schema/energy/simulation.py index ee0a5c4..bbb3322 100644 --- a/honeybee_schema/energy/simulation.py +++ b/honeybee_schema/energy/simulation.py @@ -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 ' diff --git a/honeybee_schema/project_info.py b/honeybee_schema/project_info.py index de5307d..c79f30f 100644 --- a/honeybee_schema/project_info.py +++ b/honeybee_schema/project_info.py @@ -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 @@ -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.'