Spaces:
Sleeping
Sleeping
Update app/components.py
Browse files- app/components.py +10 -0
app/components.py
CHANGED
|
@@ -263,6 +263,15 @@ def display_component_tab(comp_type: str):
|
|
| 263 |
format="%.2f",
|
| 264 |
help="Shading coefficient for external or internal shading devices (0.0 to 1.0)."
|
| 265 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 266 |
|
| 267 |
# Submit buttons
|
| 268 |
col1, col2 = st.columns(2)
|
|
@@ -314,6 +323,7 @@ def display_component_tab(comp_type: str):
|
|
| 314 |
else: # Windows, skylights
|
| 315 |
component_data["fenestration"] = fenestration
|
| 316 |
component_data["parent_component"] = parent_component
|
|
|
|
| 317 |
# Get U-value and other properties from fenestration if available
|
| 318 |
if fenestration in available_items:
|
| 319 |
component_data["u_value"] = available_items[fenestration].get("u_value", 0.0)
|
|
|
|
| 263 |
format="%.2f",
|
| 264 |
help="Shading coefficient for external or internal shading devices (0.0 to 1.0)."
|
| 265 |
)
|
| 266 |
+
|
| 267 |
+
# Function Type (Operable/Fixed)
|
| 268 |
+
function_type_options = ["Operable", "Fixed"]
|
| 269 |
+
function_type = st.selectbox(
|
| 270 |
+
"Function Type",
|
| 271 |
+
function_type_options,
|
| 272 |
+
index=function_type_options.index(editor_state.get("function_type", "Fixed")) if editor_state.get("function_type") in function_type_options else 0,
|
| 273 |
+
help="Select whether the window or skylight is operable (can be opened) or fixed."
|
| 274 |
+
)
|
| 275 |
|
| 276 |
# Submit buttons
|
| 277 |
col1, col2 = st.columns(2)
|
|
|
|
| 323 |
else: # Windows, skylights
|
| 324 |
component_data["fenestration"] = fenestration
|
| 325 |
component_data["parent_component"] = parent_component
|
| 326 |
+
component_data["function_type"] = function_type
|
| 327 |
# Get U-value and other properties from fenestration if available
|
| 328 |
if fenestration in available_items:
|
| 329 |
component_data["u_value"] = available_items[fenestration].get("u_value", 0.0)
|