Spaces:
Sleeping
Sleeping
Update data/climate_data.py
Browse files- data/climate_data.py +5 -1
data/climate_data.py
CHANGED
|
@@ -144,10 +144,12 @@ class ClimateData:
|
|
| 144 |
summer_design_temp_wb = st.number_input("Summer Design Temp WB (0.4%) (°C)", min_value=0.0, max_value=40.0, value=25.0, step=0.5)
|
| 145 |
summer_daily_range = st.number_input("Summer Daily Range (°C)", min_value=0.0, value=5.0, step=0.5)
|
| 146 |
|
| 147 |
-
|
| 148 |
monthly_temps = {}
|
| 149 |
monthly_humidity = {}
|
| 150 |
month_names = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
|
|
|
|
|
| 151 |
col1, col2 = st.columns(2)
|
| 152 |
with col1:
|
| 153 |
for month in month_names[:6]:
|
|
@@ -155,6 +157,8 @@ class ClimateData:
|
|
| 155 |
with col2:
|
| 156 |
for month in month_names[6:]:
|
| 157 |
monthly_temps[month] = st.number_input(f"{month} Temp (°C)", min_value=-50.0, max_value=50.0, value=20.0, step=0.5, key=f"temp_{month}")
|
|
|
|
|
|
|
| 158 |
col1, col2 = st.columns(2)
|
| 159 |
with col1:
|
| 160 |
for month in month_names[:6]:
|
|
|
|
| 144 |
summer_design_temp_wb = st.number_input("Summer Design Temp WB (0.4%) (°C)", min_value=0.0, max_value=40.0, value=25.0, step=0.5)
|
| 145 |
summer_daily_range = st.number_input("Summer Daily Range (°C)", min_value=0.0, value=5.0, step=0.5)
|
| 146 |
|
| 147 |
+
# Monthly Data with clear titles
|
| 148 |
monthly_temps = {}
|
| 149 |
monthly_humidity = {}
|
| 150 |
month_names = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
| 151 |
+
|
| 152 |
+
st.subheader("Monthly Temperatures")
|
| 153 |
col1, col2 = st.columns(2)
|
| 154 |
with col1:
|
| 155 |
for month in month_names[:6]:
|
|
|
|
| 157 |
with col2:
|
| 158 |
for month in month_names[6:]:
|
| 159 |
monthly_temps[month] = st.number_input(f"{month} Temp (°C)", min_value=-50.0, max_value=50.0, value=20.0, step=0.5, key=f"temp_{month}")
|
| 160 |
+
|
| 161 |
+
st.subheader("Monthly Humidity")
|
| 162 |
col1, col2 = st.columns(2)
|
| 163 |
with col1:
|
| 164 |
for month in month_names[:6]:
|