Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files- app/main.py +1 -1
- utils/cooling_load.py +3 -3
app/main.py
CHANGED
|
@@ -720,7 +720,7 @@ class HVACCalculator:
|
|
| 720 |
'heat_gain': load_dict.get('sensible', load_dict.get('total', 0)),
|
| 721 |
'clf': self.cooling_calculator.ashrae_tables.get_clf_people(
|
| 722 |
zone_type='A',
|
| 723 |
-
hours_occupied=
|
| 724 |
hour=design_loads['design_hour']
|
| 725 |
) if load_type == 'people' else 1.0,
|
| 726 |
'load': load_dict.get('total', 0) / 1000
|
|
|
|
| 720 |
'heat_gain': load_dict.get('sensible', load_dict.get('total', 0)),
|
| 721 |
'clf': self.cooling_calculator.ashrae_tables.get_clf_people(
|
| 722 |
zone_type='A',
|
| 723 |
+
hours_occupied='6h', # Using valid '6h' instead of dynamic value that might not exist
|
| 724 |
hour=design_loads['design_hour']
|
| 725 |
) if load_type == 'people' else 1.0,
|
| 726 |
'load': load_dict.get('total', 0) / 1000
|
utils/cooling_load.py
CHANGED
|
@@ -700,7 +700,7 @@ class CoolingLoadCalculator:
|
|
| 700 |
try:
|
| 701 |
clf = self.ashrae_tables.get_clf_people(
|
| 702 |
zone_type='A',
|
| 703 |
-
hours_occupied='8h'
|
| 704 |
hour=hour
|
| 705 |
)
|
| 706 |
except Exception as e:
|
|
@@ -751,7 +751,7 @@ class CoolingLoadCalculator:
|
|
| 751 |
try:
|
| 752 |
clf = self.ashrae_tables.get_clf_lights(
|
| 753 |
zone_type='A',
|
| 754 |
-
hours_occupied='8h'
|
| 755 |
hour=hour
|
| 756 |
)
|
| 757 |
except Exception as e:
|
|
@@ -797,7 +797,7 @@ class CoolingLoadCalculator:
|
|
| 797 |
try:
|
| 798 |
clf = self.ashrae_tables.get_clf_equipment(
|
| 799 |
zone_type='A',
|
| 800 |
-
|
| 801 |
hour=hour
|
| 802 |
)
|
| 803 |
except Exception as e:
|
|
|
|
| 700 |
try:
|
| 701 |
clf = self.ashrae_tables.get_clf_people(
|
| 702 |
zone_type='A',
|
| 703 |
+
hours_occupied='6h', # Changed from '8h' to '6h' which exists in the CLF tables
|
| 704 |
hour=hour
|
| 705 |
)
|
| 706 |
except Exception as e:
|
|
|
|
| 751 |
try:
|
| 752 |
clf = self.ashrae_tables.get_clf_lights(
|
| 753 |
zone_type='A',
|
| 754 |
+
hours_occupied='6h', # Changed from '8h' to '6h' which exists in the CLF tables
|
| 755 |
hour=hour
|
| 756 |
)
|
| 757 |
except Exception as e:
|
|
|
|
| 797 |
try:
|
| 798 |
clf = self.ashrae_tables.get_clf_equipment(
|
| 799 |
zone_type='A',
|
| 800 |
+
hours_operated='6h', # Changed from '8h' to '6h' which exists in the CLF tables
|
| 801 |
hour=hour
|
| 802 |
)
|
| 803 |
except Exception as e:
|