mabuseif commited on
Commit
eb8e2c7
·
verified ·
1 Parent(s): 585d14b

Update app/internal_loads.py

Browse files
Files changed (1) hide show
  1. app/internal_loads.py +7 -7
app/internal_loads.py CHANGED
@@ -974,19 +974,19 @@ def display_schedules_tab():
974
  st.markdown("### Schedule Sliders")
975
 
976
  # Table headers
977
- col_hour, col_wd, col_we = st.columns([0.7, 2.0, 2.0])
978
  with col_hour:
979
- st.markdown("<div style='text-align:center; font-weight:bold; font-size:13px;'>Hour</div>", unsafe_allow_html=True)
980
  with col_wd:
981
- st.markdown("<div style='text-align:center; font-weight:bold; font-size:13px;'>Weekday</div>", unsafe_allow_html=True)
982
  with col_we:
983
- st.markdown("<div style='text-align:center; font-weight:bold; font-size:13px;'>Weekend</div>", unsafe_allow_html=True)
984
 
985
  weekday_values = []
986
  weekend_values = []
987
 
988
  for hour in range(24):
989
- col_hour, col_wd, col_we = st.columns([0.7, 2.0, 2.0])
990
 
991
  with col_hour:
992
  st.markdown(f"<div style='text-align:center; font-size:12px'>{hour:02d}</div>", unsafe_allow_html=True)
@@ -999,7 +999,7 @@ def display_schedules_tab():
999
  max_value=1.0,
1000
  step=0.1,
1001
  value=st.session_state.get(f"weekday_slider_{hour}", 0.0),
1002
- label_visibility="collapsed",
1003
  format=None # hides value text below slider
1004
  )
1005
  weekday_values.append(val)
@@ -1012,7 +1012,7 @@ def display_schedules_tab():
1012
  max_value=1.0,
1013
  step=0.1,
1014
  value=st.session_state.get(f"weekend_slider_{hour}", 0.0),
1015
- label_visibility="collapsed",
1016
  format=None
1017
  )
1018
  weekend_values.append(val)
 
974
  st.markdown("### Schedule Sliders")
975
 
976
  # Table headers
977
+ col_hour, col_wd, col_we = st.columns([0.4, 2.0, 2.0])
978
  with col_hour:
979
+ st.markdown("<div style='text-align:center; font-weight:bold; font-size:18px;'>Hour</div>", unsafe_allow_html=True)
980
  with col_wd:
981
+ st.markdown("<div style='text-align:center; font-weight:bold; font-size:18px;'>Weekday</div>", unsafe_allow_html=True)
982
  with col_we:
983
+ st.markdown("<div style='text-align:center; font-weight:bold; font-size:18px;'>Weekend</div>", unsafe_allow_html=True)
984
 
985
  weekday_values = []
986
  weekend_values = []
987
 
988
  for hour in range(24):
989
+ col_hour, col_wd, col_we = st.columns([0.4, 2.0, 2.0])
990
 
991
  with col_hour:
992
  st.markdown(f"<div style='text-align:center; font-size:12px'>{hour:02d}</div>", unsafe_allow_html=True)
 
999
  max_value=1.0,
1000
  step=0.1,
1001
  value=st.session_state.get(f"weekday_slider_{hour}", 0.0),
1002
+ label_visibility="hidden",
1003
  format=None # hides value text below slider
1004
  )
1005
  weekday_values.append(val)
 
1012
  max_value=1.0,
1013
  step=0.1,
1014
  value=st.session_state.get(f"weekend_slider_{hour}", 0.0),
1015
+ label_visibility="hidden",
1016
  format=None
1017
  )
1018
  weekend_values.append(val)