Spaces:
Sleeping
Sleeping
Upload cooling_load.py
Browse files- utils/cooling_load.py +3 -3
utils/cooling_load.py
CHANGED
|
@@ -575,17 +575,17 @@ class CoolingLoadCalculator:
|
|
| 575 |
conduction_load = window.u_value * window.area * cltd
|
| 576 |
|
| 577 |
# Solar load
|
| 578 |
-
|
| 579 |
try:
|
| 580 |
scl = self.ashrae_tables.get_scl(
|
| 581 |
-
latitude=
|
| 582 |
month=month,
|
| 583 |
orientation=window.orientation.value,
|
| 584 |
hour=hour
|
| 585 |
)
|
| 586 |
except Exception as e:
|
| 587 |
if st.session_state.get('debug_mode', False):
|
| 588 |
-
logger.error(f"get_scl failed for latitude={
|
| 589 |
logger.warning("Using default SCL=100 W/m²")
|
| 590 |
scl = 100.0
|
| 591 |
|
|
|
|
| 575 |
conduction_load = window.u_value * window.area * cltd
|
| 576 |
|
| 577 |
# Solar load
|
| 578 |
+
# Fix: Don't concatenate latitude and month, pass them separately
|
| 579 |
try:
|
| 580 |
scl = self.ashrae_tables.get_scl(
|
| 581 |
+
latitude=latitude,
|
| 582 |
month=month,
|
| 583 |
orientation=window.orientation.value,
|
| 584 |
hour=hour
|
| 585 |
)
|
| 586 |
except Exception as e:
|
| 587 |
if st.session_state.get('debug_mode', False):
|
| 588 |
+
logger.error(f"get_scl failed for latitude={latitude}, month={month}, orientation={window.orientation.value}: {str(e)}")
|
| 589 |
logger.warning("Using default SCL=100 W/m²")
|
| 590 |
scl = 100.0
|
| 591 |
|