mabuseif commited on
Commit
03788e2
·
verified ·
1 Parent(s): 9b5e232

Upload cooling_load.py

Browse files
Files changed (1) hide show
  1. 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
- scl_latitude = f"{latitude}_{month}"
579
  try:
580
  scl = self.ashrae_tables.get_scl(
581
- latitude=scl_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={scl_latitude}, month={month}, orientation={window.orientation.value}: {str(e)}")
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