Spaces:
Sleeping
Sleeping
Update app/internal_loads.py
Browse files- app/internal_loads.py +25 -25
app/internal_loads.py
CHANGED
@@ -25,31 +25,6 @@ from typing import Dict, List, Any, Optional, Tuple, Union
|
|
25 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
26 |
logger = logging.getLogger(__name__)
|
27 |
|
28 |
-
# Custom CSS for vertical sliders
|
29 |
-
st.markdown("""
|
30 |
-
<style>
|
31 |
-
.slider-container {
|
32 |
-
display: flex;
|
33 |
-
flex-direction: row;
|
34 |
-
align-items: flex-end;
|
35 |
-
justify-content: center;
|
36 |
-
gap: 8px;
|
37 |
-
padding-top: 30px;
|
38 |
-
}
|
39 |
-
.slider-item {
|
40 |
-
writing-mode: bt-lr;
|
41 |
-
transform: rotate(-90deg);
|
42 |
-
height: 150px;
|
43 |
-
width: 30px;
|
44 |
-
}
|
45 |
-
.hour-label {
|
46 |
-
text-align: center;
|
47 |
-
font-size: 12px;
|
48 |
-
margin-top: 5px;
|
49 |
-
}
|
50 |
-
</style>
|
51 |
-
""", unsafe_allow_html=True)
|
52 |
-
|
53 |
# Define constants
|
54 |
LOAD_TYPES = ["People", "Lighting", "Equipment", "Ventilation & Infiltration", "Schedules"]
|
55 |
|
@@ -947,6 +922,31 @@ def display_ventilation_infiltration_tab():
|
|
947 |
st.session_state.module_rerun_flags["internal_loads"] = True
|
948 |
st.rerun()
|
949 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
950 |
def display_schedules_tab():
|
951 |
"""Display the schedules tab content with responsive vertical slider interface."""
|
952 |
st.subheader("Schedule Management")
|
|
|
25 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
26 |
logger = logging.getLogger(__name__)
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
# Define constants
|
29 |
LOAD_TYPES = ["People", "Lighting", "Equipment", "Ventilation & Infiltration", "Schedules"]
|
30 |
|
|
|
922 |
st.session_state.module_rerun_flags["internal_loads"] = True
|
923 |
st.rerun()
|
924 |
|
925 |
+
# Custom CSS for vertical sliders
|
926 |
+
st.markdown("""
|
927 |
+
<style>
|
928 |
+
.slider-container {
|
929 |
+
display: flex;
|
930 |
+
flex-direction: row;
|
931 |
+
align-items: flex-end;
|
932 |
+
justify-content: center;
|
933 |
+
gap: 8px;
|
934 |
+
padding-top: 30px;
|
935 |
+
}
|
936 |
+
.slider-item {
|
937 |
+
writing-mode: bt-lr;
|
938 |
+
transform: rotate(-90deg);
|
939 |
+
height: 150px;
|
940 |
+
width: 30px;
|
941 |
+
}
|
942 |
+
.hour-label {
|
943 |
+
text-align: center;
|
944 |
+
font-size: 12px;
|
945 |
+
margin-top: 5px;
|
946 |
+
}
|
947 |
+
</style>
|
948 |
+
""", unsafe_allow_html=True)
|
949 |
+
|
950 |
def display_schedules_tab():
|
951 |
"""Display the schedules tab content with responsive vertical slider interface."""
|
952 |
st.subheader("Schedule Management")
|