|
5 | 5 | from comcheck_api.types.core_types import WholeBldgUse |
6 | 6 |
|
7 | 7 | # Default building area structure with interior lighting space |
8 | | -DEFAULT_BUILDING_AREA: WholeBldgUse = WholeBldgUse(**{ |
9 | | - "key": str(uuid4()), |
10 | | - "wholeBldgType": "WHOLE_BUILDING_AUTOMOTIVE", # TODO: wholeBldgType is a list of enum, need to define the enum type |
11 | | - "areaDescription": "Automotive Facility", |
12 | | - "constructionType": "NON_RESIDENTIAL", |
13 | | - "floorArea": 1000, |
14 | | - "internalLoad": 0, |
15 | | - "powerDensity": 0.71, # TODO: power density is automatically calculated based on wholeBldgType |
16 | | - "isTenantSpace": False, # TODO: space conditioning is a list of enum, need to define the enum type |
17 | | - "activityUse": [], |
18 | | - "interiorLightingSpace": { |
19 | | - "altExemptType": "EXEMPT_NOT_SET", |
20 | | - "description": "", |
21 | | - "numFixturesAlteredOrAdded": 0, |
22 | | - "postAltTotalWattage": 0, |
23 | | - "preAltNumberFixtures": 0, |
24 | | - "preAltTotalWattage": 0, |
25 | | - "allowanceType": None, |
26 | | - "exemptionType": None, |
27 | | - "allowanceFloorArea": 0, |
28 | | - "rcrFloorToWorkplaneHeight": 0, |
29 | | - "rcrPerimeter": 0, |
30 | | - "rcrWorkplaneToLuminaireHeight": 0, |
31 | | - "fixture": [], |
32 | | - }, # redundant data, but need it for backend call |
33 | | -}) |
| 8 | +DEFAULT_BUILDING_AREA: WholeBldgUse = WholeBldgUse.model_validate( |
| 9 | + { |
| 10 | + "key": str(uuid4()), |
| 11 | + "wholeBldgType": "WHOLE_BUILDING_AUTOMOTIVE", # TODO: wholeBldgType is a list of enum, need to define the enum type |
| 12 | + "areaDescription": "Automotive Facility", |
| 13 | + "constructionType": "NON_RESIDENTIAL", |
| 14 | + "floorArea": 1000, |
| 15 | + "internalLoad": 0, |
| 16 | + "powerDensity": 0.71, # TODO: power density is automatically calculated based on wholeBldgType |
| 17 | + "isTenantSpace": False, # TODO: space conditioning is a list of enum, need to define the enum type |
| 18 | + "activityUse": [], |
| 19 | + "interiorLightingSpace": { |
| 20 | + "altExemptType": "EXEMPT_NOT_SET", |
| 21 | + "description": "", |
| 22 | + "numFixturesAlteredOrAdded": 0, |
| 23 | + "postAltTotalWattage": 0, |
| 24 | + "preAltNumberFixtures": 0, |
| 25 | + "preAltTotalWattage": 0, |
| 26 | + "allowanceType": None, |
| 27 | + "exemptionType": None, |
| 28 | + "allowanceFloorArea": 0, |
| 29 | + "rcrFloorToWorkplaneHeight": 0, |
| 30 | + "rcrPerimeter": 0, |
| 31 | + "rcrWorkplaneToLuminaireHeight": 0, |
| 32 | + "fixture": [], |
| 33 | + }, # redundant data, but need it for backend call |
| 34 | + } |
| 35 | +) |
0 commit comments