mabuseif commited on
Commit
fa2ad5d
·
verified ·
1 Parent(s): cbb85e1

Update utils/cooling_load.py

Browse files
Files changed (1) hide show
  1. utils/cooling_load.py +0 -14
utils/cooling_load.py CHANGED
@@ -693,13 +693,6 @@ class CoolingLoadCalculator:
693
  if self.debug_mode:
694
  logger.debug(f"calculate_window_cooling_load: latitude={latitude}, month={month}, hour={hour}, orientation={window.orientation.value}, glazing_type={glazing_type}, frame_type={frame_type}")
695
 
696
- # Convert month string to integer for CLTDCalculator
697
- month_map = {'JAN': 1, 'FEB': 2, 'MAR': 3, 'APR': 4, 'MAY': 5, 'JUN': 6,
698
- 'JUL': 7, 'AUG': 8, 'SEP': 9, 'OCT': 10, 'NOV': 11, 'DEC': 12}
699
- month_int = month_map.get(month.upper(), 7) # Default to July
700
- if self.debug_mode:
701
- logger.debug(f"Month converted: {month} -> {month_int}")
702
-
703
  # Initialize CLTDCalculator
704
  cltd_calculator = CLTDCalculator(
705
  indoor_temp=indoor_temp,
@@ -850,13 +843,6 @@ class CoolingLoadCalculator:
850
  if self.debug_mode:
851
  logger.debug(f"calculate_skylight_cooling_load: latitude={latitude}, month={month}, hour={hour}, orientation=Horizontal, glazing_type={glazing_type}, frame_type={frame_type}")
852
 
853
- # Convert month string to integer for CLTDCalculator
854
- month_map = {'JAN': 1, 'FEB': 2, 'MAR': 3, 'APR': 4, 'MAY': 5, 'JUN': 6,
855
- 'JUL': 7, 'AUG': 8, 'SEP': 9, 'OCT': 10, 'NOV': 11, 'DEC': 12}
856
- month_int = month_map.get(month.upper(), 7) # Default to July
857
- if self.debug_mode:
858
- logger.debug(f"Month converted: {month} -> {month_int}")
859
-
860
  # Initialize CLTDCalculator
861
  cltd_calculator = CLTDCalculator(
862
  indoor_temp=indoor_temp,
 
693
  if self.debug_mode:
694
  logger.debug(f"calculate_window_cooling_load: latitude={latitude}, month={month}, hour={hour}, orientation={window.orientation.value}, glazing_type={glazing_type}, frame_type={frame_type}")
695
 
 
 
 
 
 
 
 
696
  # Initialize CLTDCalculator
697
  cltd_calculator = CLTDCalculator(
698
  indoor_temp=indoor_temp,
 
843
  if self.debug_mode:
844
  logger.debug(f"calculate_skylight_cooling_load: latitude={latitude}, month={month}, hour={hour}, orientation=Horizontal, glazing_type={glazing_type}, frame_type={frame_type}")
845
 
 
 
 
 
 
 
 
846
  # Initialize CLTDCalculator
847
  cltd_calculator = CLTDCalculator(
848
  indoor_temp=indoor_temp,