Update data/calculation.py
Browse files- data/calculation.py +1 -0
data/calculation.py
CHANGED
|
@@ -140,6 +140,7 @@ class SolarCalculations:
|
|
| 140 |
|
| 141 |
# Step 6: Calculate component-specific solar parameters
|
| 142 |
component_results = []
|
|
|
|
| 143 |
for comp_type, comp_list in components.items():
|
| 144 |
for comp in comp_list:
|
| 145 |
surface_tilt = getattr(comp, 'tilt', 0.0) # Default to 0 if not specified
|
|
|
|
| 140 |
|
| 141 |
# Step 6: Calculate component-specific solar parameters
|
| 142 |
component_results = []
|
| 143 |
+
first_component = True # Initialize first_component before the loop
|
| 144 |
for comp_type, comp_list in components.items():
|
| 145 |
for comp in comp_list:
|
| 146 |
surface_tilt = getattr(comp, 'tilt', 0.0) # Default to 0 if not specified
|