mabuseif commited on
Commit
28f25a1
·
verified ·
1 Parent(s): 294d3af

Update app/internal_loads.py

Browse files
Files changed (1) hide show
  1. app/internal_loads.py +3 -3
app/internal_loads.py CHANGED
@@ -452,7 +452,7 @@ def display_lighting_tab():
452
  st.session_state.lighting_editor = {}
453
 
454
  # Get building type for default values
455
- building_type = st.session_state.building_info.get("building_type", "Other")
456
  default_lighting_density = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["Other"])["lighting_density"]
457
 
458
  # Display the lighting editor form
@@ -613,7 +613,7 @@ def display_equipment_tab():
613
  st.session_state.equipment_editor = {}
614
 
615
  # Get building type for default values
616
- building_type = st.session_state.building_info.get("building_type", "Other")
617
  default_equipment_data = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["Other"])["equipment_heat_gains"]
618
 
619
  # Display the equipment editor form
@@ -790,7 +790,7 @@ def display_ventilation_infiltration_tab():
790
  st.session_state.vent_inf_editor = {}
791
 
792
  # Get building type for default values
793
- building_type = st.session_state.building_info.get("building_type", "Other")
794
  default_building_data = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["Other"])
795
 
796
  # Display the ventilation/infiltration editor form
 
452
  st.session_state.lighting_editor = {}
453
 
454
  # Get building type for default values
455
+ building_type = st.session_state.project_data["building_info"].get("building_type")
456
  default_lighting_density = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["Other"])["lighting_density"]
457
 
458
  # Display the lighting editor form
 
613
  st.session_state.equipment_editor = {}
614
 
615
  # Get building type for default values
616
+ building_type = st.session_state.project_data["building_info"].get("building_type")
617
  default_equipment_data = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["Other"])["equipment_heat_gains"]
618
 
619
  # Display the equipment editor form
 
790
  st.session_state.vent_inf_editor = {}
791
 
792
  # Get building type for default values
793
+ building_type = st.session_state.project_data["building_info"].get("building_type")
794
  default_building_data = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["Other"])
795
 
796
  # Display the ventilation/infiltration editor form