mabuseif commited on
Commit
12da339
·
verified ·
1 Parent(s): 2d073db

Update app/internal_loads.py

Browse files
Files changed (1) hide show
  1. app/internal_loads.py +1 -1
app/internal_loads.py CHANGED
@@ -129,7 +129,7 @@ def display_people_tab():
129
  building_type = st.session_state.project_data["building_info"].get("building_type")
130
  floor_area = st.session_state.project_data["building_info"].get("floor_area", 100.0)
131
  schedule_type = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["Other"])["schedule_type"]
132
- occupant_density = DEFAULT_OCCUPANT_DENSITY.get(schedule_type, 0.1) # Default to 0.1 if not found
133
  default_num_people = int(np.ceil(occupant_density * floor_area))
134
 
135
  # Display the editor form
 
129
  building_type = st.session_state.project_data["building_info"].get("building_type")
130
  floor_area = st.session_state.project_data["building_info"].get("floor_area", 100.0)
131
  schedule_type = DEFAULT_BUILDING_INTERNALS.get(building_type, DEFAULT_BUILDING_INTERNALS["Other"])["schedule_type"]
132
+ occupant_density = DEFAULT_OCCUPANT_DENSITY.get(schedule_type, {"occupant_densities_PEOPLE_m2": 0.1})["occupant_densities_PEOPLE_m2"]
133
  default_num_people = int(np.ceil(occupant_density * floor_area))
134
 
135
  # Display the editor form