Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -4,7 +4,7 @@ def process_data(poles_data):
|
|
| 4 |
processed_data = []
|
| 5 |
for pole in poles_data:
|
| 6 |
# Example: Add a field for the total energy generated based on Solar and Wind outputs
|
| 7 |
-
total_energy = pole['
|
| 8 |
pole['Total_Energy'] = total_energy
|
| 9 |
processed_data.append(pole)
|
| 10 |
|
|
|
|
| 4 |
processed_data = []
|
| 5 |
for pole in poles_data:
|
| 6 |
# Example: Add a field for the total energy generated based on Solar and Wind outputs
|
| 7 |
+
total_energy = pole['Solar_Generation__c'] + pole['Wind_Generation__c']
|
| 8 |
pole['Total_Energy'] = total_energy
|
| 9 |
processed_data.append(pole)
|
| 10 |
|