Spaces:
Sleeping
Sleeping
Upload component_library.py
Browse files
utils/component_library.py
CHANGED
|
@@ -58,7 +58,7 @@ class ComponentLibrary:
|
|
| 58 |
name=wall_data["name"],
|
| 59 |
component_type=ComponentType.WALL,
|
| 60 |
u_value=wall_data["u_value"],
|
| 61 |
-
area=
|
| 62 |
orientation=Orientation.NOT_APPLICABLE, # Orientation will be set when component is used
|
| 63 |
wall_type=wall_data["name"],
|
| 64 |
wall_group=wall_data["wall_group"],
|
|
@@ -93,7 +93,7 @@ class ComponentLibrary:
|
|
| 93 |
name=roof_data["name"],
|
| 94 |
component_type=ComponentType.ROOF,
|
| 95 |
u_value=roof_data["u_value"],
|
| 96 |
-
area=
|
| 97 |
orientation=Orientation.HORIZONTAL,
|
| 98 |
roof_type=roof_data["name"],
|
| 99 |
roof_group=roof_data["roof_group"],
|
|
@@ -128,7 +128,7 @@ class ComponentLibrary:
|
|
| 128 |
name=floor_data["name"],
|
| 129 |
component_type=ComponentType.FLOOR,
|
| 130 |
u_value=floor_data["u_value"],
|
| 131 |
-
area=
|
| 132 |
orientation=Orientation.HORIZONTAL,
|
| 133 |
floor_type=floor_data["name"],
|
| 134 |
is_ground_contact=floor_data["is_ground_contact"],
|
|
@@ -146,7 +146,7 @@ class ComponentLibrary:
|
|
| 146 |
name=window_data["name"],
|
| 147 |
component_type=ComponentType.WINDOW,
|
| 148 |
u_value=window_data["u_value"],
|
| 149 |
-
area=
|
| 150 |
orientation=Orientation.NOT_APPLICABLE, # Orientation will be set when component is used
|
| 151 |
shgc=window_data["shgc"],
|
| 152 |
vt=window_data["vt"],
|
|
@@ -167,7 +167,7 @@ class ComponentLibrary:
|
|
| 167 |
name=door_data["name"],
|
| 168 |
component_type=ComponentType.DOOR,
|
| 169 |
u_value=door_data["u_value"],
|
| 170 |
-
area=
|
| 171 |
orientation=Orientation.NOT_APPLICABLE, # Orientation will be set when component is used
|
| 172 |
door_type=door_data["door_type"],
|
| 173 |
glazing_percentage=door_data["glazing_percentage"],
|
|
|
|
| 58 |
name=wall_data["name"],
|
| 59 |
component_type=ComponentType.WALL,
|
| 60 |
u_value=wall_data["u_value"],
|
| 61 |
+
area=1.0, # Area will be set when component is used
|
| 62 |
orientation=Orientation.NOT_APPLICABLE, # Orientation will be set when component is used
|
| 63 |
wall_type=wall_data["name"],
|
| 64 |
wall_group=wall_data["wall_group"],
|
|
|
|
| 93 |
name=roof_data["name"],
|
| 94 |
component_type=ComponentType.ROOF,
|
| 95 |
u_value=roof_data["u_value"],
|
| 96 |
+
area=1.0, # Area will be set when component is used
|
| 97 |
orientation=Orientation.HORIZONTAL,
|
| 98 |
roof_type=roof_data["name"],
|
| 99 |
roof_group=roof_data["roof_group"],
|
|
|
|
| 128 |
name=floor_data["name"],
|
| 129 |
component_type=ComponentType.FLOOR,
|
| 130 |
u_value=floor_data["u_value"],
|
| 131 |
+
area=1.0, # Area will be set when component is used
|
| 132 |
orientation=Orientation.HORIZONTAL,
|
| 133 |
floor_type=floor_data["name"],
|
| 134 |
is_ground_contact=floor_data["is_ground_contact"],
|
|
|
|
| 146 |
name=window_data["name"],
|
| 147 |
component_type=ComponentType.WINDOW,
|
| 148 |
u_value=window_data["u_value"],
|
| 149 |
+
area=1.0, # Area will be set when component is used
|
| 150 |
orientation=Orientation.NOT_APPLICABLE, # Orientation will be set when component is used
|
| 151 |
shgc=window_data["shgc"],
|
| 152 |
vt=window_data["vt"],
|
|
|
|
| 167 |
name=door_data["name"],
|
| 168 |
component_type=ComponentType.DOOR,
|
| 169 |
u_value=door_data["u_value"],
|
| 170 |
+
area=1.0, # Area will be set when component is used
|
| 171 |
orientation=Orientation.NOT_APPLICABLE, # Orientation will be set when component is used
|
| 172 |
door_type=door_data["door_type"],
|
| 173 |
glazing_percentage=door_data["glazing_percentage"],
|