Spaces:
Sleeping
Sleeping
Update app/internal_loads.py
Browse files- app/internal_loads.py +0 -15
app/internal_loads.py
CHANGED
|
@@ -715,11 +715,6 @@ def display_ventilation_tab():
|
|
| 715 |
format="%.2f",
|
| 716 |
help="Total fan efficiency as a fraction between 0 and 1."
|
| 717 |
)
|
| 718 |
-
zone_name = st.text_input(
|
| 719 |
-
"Zone Name",
|
| 720 |
-
value=editor_state.get("zone_name", ""),
|
| 721 |
-
help="Name of the target zone for this ventilation system."
|
| 722 |
-
)
|
| 723 |
ventilation_type = ""
|
| 724 |
sensible_effectiveness = 0.0
|
| 725 |
latent_effectiveness = 0.0
|
|
@@ -748,11 +743,6 @@ def display_ventilation_tab():
|
|
| 748 |
format="%.2f",
|
| 749 |
help="Total fan efficiency as a fraction between 0 and 1."
|
| 750 |
)
|
| 751 |
-
zone_name = st.text_input(
|
| 752 |
-
"Zone Name",
|
| 753 |
-
value=editor_state.get("zone_name", ""),
|
| 754 |
-
help="Name of the target zone for this ventilation system."
|
| 755 |
-
)
|
| 756 |
sensible_effectiveness = st.number_input(
|
| 757 |
"Sensible Effectiveness (0–1)",
|
| 758 |
min_value=0.0,
|
|
@@ -791,9 +781,6 @@ def display_ventilation_tab():
|
|
| 791 |
if name.strip() in existing_names:
|
| 792 |
st.error("System name must be unique.")
|
| 793 |
return
|
| 794 |
-
if system_type in ["Balanced Flow", "Heat Recovery"] and not zone_name.strip():
|
| 795 |
-
st.error("Zone name is required for Balanced Flow and Heat Recovery systems.")
|
| 796 |
-
return
|
| 797 |
|
| 798 |
# Create ventilation data
|
| 799 |
ventilation_data = {
|
|
@@ -806,7 +793,6 @@ def display_ventilation_tab():
|
|
| 806 |
"ventilation_type": ventilation_type,
|
| 807 |
"fan_pressure_rise": fan_pressure_rise,
|
| 808 |
"fan_efficiency": fan_efficiency,
|
| 809 |
-
"zone_name": zone_name if system_type in ["Balanced Flow", "Heat Recovery"] else "",
|
| 810 |
"opening_effectiveness": opening_effectiveness if system_type == "Wind and Stack Open Area" else 0.0,
|
| 811 |
"sensible_effectiveness": sensible_effectiveness,
|
| 812 |
"latent_effectiveness": latent_effectiveness
|
|
@@ -1449,7 +1435,6 @@ def display_ventilation_table(ventilation_systems: List[Dict[str, Any]]):
|
|
| 1449 |
"ventilation_type": system.get("ventilation_type", "Natural"),
|
| 1450 |
"fan_pressure_rise": system.get("fan_pressure_rise", 200.0),
|
| 1451 |
"fan_efficiency": system.get("fan_efficiency", 0.7),
|
| 1452 |
-
"zone_name": system.get("zone_name", ""),
|
| 1453 |
"opening_effectiveness": system.get("opening_effectiveness", 50.0),
|
| 1454 |
"sensible_effectiveness": system.get("sensible_effectiveness", 0.8),
|
| 1455 |
"latent_effectiveness": system.get("latent_effectiveness", 0.6),
|
|
|
|
| 715 |
format="%.2f",
|
| 716 |
help="Total fan efficiency as a fraction between 0 and 1."
|
| 717 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 718 |
ventilation_type = ""
|
| 719 |
sensible_effectiveness = 0.0
|
| 720 |
latent_effectiveness = 0.0
|
|
|
|
| 743 |
format="%.2f",
|
| 744 |
help="Total fan efficiency as a fraction between 0 and 1."
|
| 745 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 746 |
sensible_effectiveness = st.number_input(
|
| 747 |
"Sensible Effectiveness (0–1)",
|
| 748 |
min_value=0.0,
|
|
|
|
| 781 |
if name.strip() in existing_names:
|
| 782 |
st.error("System name must be unique.")
|
| 783 |
return
|
|
|
|
|
|
|
|
|
|
| 784 |
|
| 785 |
# Create ventilation data
|
| 786 |
ventilation_data = {
|
|
|
|
| 793 |
"ventilation_type": ventilation_type,
|
| 794 |
"fan_pressure_rise": fan_pressure_rise,
|
| 795 |
"fan_efficiency": fan_efficiency,
|
|
|
|
| 796 |
"opening_effectiveness": opening_effectiveness if system_type == "Wind and Stack Open Area" else 0.0,
|
| 797 |
"sensible_effectiveness": sensible_effectiveness,
|
| 798 |
"latent_effectiveness": latent_effectiveness
|
|
|
|
| 1435 |
"ventilation_type": system.get("ventilation_type", "Natural"),
|
| 1436 |
"fan_pressure_rise": system.get("fan_pressure_rise", 200.0),
|
| 1437 |
"fan_efficiency": system.get("fan_efficiency", 0.7),
|
|
|
|
| 1438 |
"opening_effectiveness": system.get("opening_effectiveness", 50.0),
|
| 1439 |
"sensible_effectiveness": system.get("sensible_effectiveness", 0.8),
|
| 1440 |
"latent_effectiveness": system.get("latent_effectiveness", 0.6),
|