Spaces:
Sleeping
Sleeping
Update app/hvac_loads.py
Browse files- app/hvac_loads.py +4 -4
app/hvac_loads.py
CHANGED
@@ -763,7 +763,7 @@ class TFMCalculations:
|
|
763 |
st.session_state.material_library = MaterialLibrary()
|
764 |
logger.info("Initialized MaterialLibrary in session_state for solar calculations")
|
765 |
|
766 |
-
if indoor_conditions["type"] == "Adaptive":
|
767 |
acceptability = indoor_conditions.get("adaptive_acceptability", "90")
|
768 |
adaptive_setpoints = AdaptiveComfortModel.generate_adaptive_setpoints(hourly_data, acceptability)
|
769 |
else:
|
@@ -996,9 +996,9 @@ def display_hvac_loads_page():
|
|
996 |
st.subheader("Indoor Conditions")
|
997 |
indoor_type = st.selectbox(
|
998 |
"Indoor Conditions Type",
|
999 |
-
["Fixed Setpoints", "Adaptive"],
|
1000 |
key="hvac_indoor_type",
|
1001 |
-
index=["Fixed Setpoints", "Adaptive"].index(st.session_state.project_data["indoor_conditions"]["type"])
|
1002 |
)
|
1003 |
st.session_state.project_data["indoor_conditions"]["type"] = indoor_type
|
1004 |
|
@@ -1046,7 +1046,7 @@ def display_hvac_loads_page():
|
|
1046 |
"temperature": heating_temp,
|
1047 |
"rh": heating_rh
|
1048 |
}
|
1049 |
-
elif indoor_type == "Adaptive":
|
1050 |
acceptability = st.selectbox(
|
1051 |
"Adaptive Comfort Acceptability (%)",
|
1052 |
["80", "85", "90", "95"],
|
|
|
763 |
st.session_state.material_library = MaterialLibrary()
|
764 |
logger.info("Initialized MaterialLibrary in session_state for solar calculations")
|
765 |
|
766 |
+
if indoor_conditions["type"] == "ASHRAE 55 Adaptive Comfort":
|
767 |
acceptability = indoor_conditions.get("adaptive_acceptability", "90")
|
768 |
adaptive_setpoints = AdaptiveComfortModel.generate_adaptive_setpoints(hourly_data, acceptability)
|
769 |
else:
|
|
|
996 |
st.subheader("Indoor Conditions")
|
997 |
indoor_type = st.selectbox(
|
998 |
"Indoor Conditions Type",
|
999 |
+
["Fixed Setpoints", "ASHRAE 55 Adaptive Comfort"],
|
1000 |
key="hvac_indoor_type",
|
1001 |
+
index=["Fixed Setpoints", "ASHRAE 55 Adaptive Comfort"].index(st.session_state.project_data["indoor_conditions"]["type"])
|
1002 |
)
|
1003 |
st.session_state.project_data["indoor_conditions"]["type"] = indoor_type
|
1004 |
|
|
|
1046 |
"temperature": heating_temp,
|
1047 |
"rh": heating_rh
|
1048 |
}
|
1049 |
+
elif indoor_type == "ASHRAE 55 Adaptive Comfort":
|
1050 |
acceptability = st.selectbox(
|
1051 |
"Adaptive Comfort Acceptability (%)",
|
1052 |
["80", "85", "90", "95"],
|