Spaces:
Sleeping
Sleeping
Update app/building_information.py
Browse files- app/building_information.py +8 -20
app/building_information.py
CHANGED
@@ -113,7 +113,7 @@ def display_building_info_page():
|
|
113 |
# Building Orientation
|
114 |
st.subheader("Building Orientation")
|
115 |
|
116 |
-
# Display orientation
|
117 |
display_orientation_diagram()
|
118 |
|
119 |
orientation_angle = st.slider(
|
@@ -293,26 +293,14 @@ def display_building_info_help():
|
|
293 |
""")
|
294 |
|
295 |
def display_orientation_diagram():
|
296 |
-
"""Display
|
297 |
-
|
298 |
-
North (0°)
|
299 |
-
^
|
300 |
-
|
|
301 |
-
|
|
302 |
-
West (270°) <---+---> East (90°)
|
303 |
-
|
|
304 |
-
|
|
305 |
-
v
|
306 |
-
South (180°)
|
307 |
|
308 |
-
|
309 |
-
|
310 |
-
- Facade B: South (180°)
|
311 |
-
- Facade C: East (90°)
|
312 |
-
- Facade D: West (270°)
|
313 |
-
"""
|
314 |
|
315 |
-
|
|
|
316 |
|
317 |
def calculate_volume(floor_area: float, height: float) -> float:
|
318 |
"""
|
@@ -325,4 +313,4 @@ def calculate_volume(floor_area: float, height: float) -> float:
|
|
325 |
Returns:
|
326 |
Building volume in cubic meters
|
327 |
"""
|
328 |
-
return floor_area * height
|
|
|
113 |
# Building Orientation
|
114 |
st.subheader("Building Orientation")
|
115 |
|
116 |
+
# Display orientation images
|
117 |
display_orientation_diagram()
|
118 |
|
119 |
orientation_angle = st.slider(
|
|
|
293 |
""")
|
294 |
|
295 |
def display_orientation_diagram():
|
296 |
+
"""Display orientation images showing building orientation."""
|
297 |
+
col1, col2 = st.columns(2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
|
299 |
+
with col1:
|
300 |
+
st.image("images/orientation.jpg", caption="Building Orientation Diagram 1", use_column_width=True)
|
|
|
|
|
|
|
|
|
301 |
|
302 |
+
with col2:
|
303 |
+
st.image("images/orientation1.jpg", caption="Building Orientation Diagram 2", use_column_width=True)
|
304 |
|
305 |
def calculate_volume(floor_area: float, height: float) -> float:
|
306 |
"""
|
|
|
313 |
Returns:
|
314 |
Building volume in cubic meters
|
315 |
"""
|
316 |
+
return floor_area * height
|