Spaces:
Sleeping
Sleeping
Update app/internal_loads.py
Browse files- app/internal_loads.py +3 -3
app/internal_loads.py
CHANGED
@@ -274,7 +274,7 @@ def display_lighting_tab():
|
|
274 |
|
275 |
# Get building type for default values
|
276 |
building_type = st.session_state.project_data["building_info"].get("building_type")
|
277 |
-
default_lighting_density = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["
|
278 |
|
279 |
# Display the editor form
|
280 |
with st.form("lighting_editor_form", clear_on_submit=True):
|
@@ -408,7 +408,7 @@ def display_equipment_tab():
|
|
408 |
|
409 |
# Get building type for default values
|
410 |
building_type = st.session_state.project_data["building_info"].get("building_type")
|
411 |
-
default_equipment_data = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["
|
412 |
|
413 |
# Display the editor form
|
414 |
with st.form("equipment_editor_form", clear_on_submit=True):
|
@@ -573,7 +573,7 @@ def display_ventilation_infiltration_tab():
|
|
573 |
|
574 |
# Get building type for default values
|
575 |
building_type = st.session_state.project_data["building_info"].get("building_type")
|
576 |
-
default_building_data = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["
|
577 |
|
578 |
# Display the editor form
|
579 |
with st.form("vent_inf_editor_form", clear_on_submit=True):
|
|
|
274 |
|
275 |
# Get building type for default values
|
276 |
building_type = st.session_state.project_data["building_info"].get("building_type")
|
277 |
+
default_lighting_density = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["Custom"])["lighting_density"]
|
278 |
|
279 |
# Display the editor form
|
280 |
with st.form("lighting_editor_form", clear_on_submit=True):
|
|
|
408 |
|
409 |
# Get building type for default values
|
410 |
building_type = st.session_state.project_data["building_info"].get("building_type")
|
411 |
+
default_equipment_data = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["Custom"])["equipment_heat_gains"]
|
412 |
|
413 |
# Display the editor form
|
414 |
with st.form("equipment_editor_form", clear_on_submit=True):
|
|
|
573 |
|
574 |
# Get building type for default values
|
575 |
building_type = st.session_state.project_data["building_info"].get("building_type")
|
576 |
+
default_building_data = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["Custom"])
|
577 |
|
578 |
# Display the editor form
|
579 |
with st.form("vent_inf_editor_form", clear_on_submit=True):
|