Update app.py
Browse files
app.py
CHANGED
|
@@ -10,10 +10,10 @@ import json
|
|
| 10 |
|
| 11 |
def get_json():
|
| 12 |
"""
|
| 13 |
-
|
| 14 |
"""
|
| 15 |
with open('data.json') as f:
|
| 16 |
-
|
| 17 |
|
| 18 |
# Optimize energy system and use MGA
|
| 19 |
def optimize_energy_system(solar_cost, onshore_wind_cost, offshore_wind_cost, river_cost, battery_cost, yearly_demand, solar_range, wind_range, river_range, offshore_wind_range, thresholds, selected_tech):
|
|
|
|
| 10 |
|
| 11 |
def get_json():
|
| 12 |
"""
|
| 13 |
+
data.json
|
| 14 |
"""
|
| 15 |
with open('data.json') as f:
|
| 16 |
+
return json.load(f)
|
| 17 |
|
| 18 |
# Optimize energy system and use MGA
|
| 19 |
def optimize_energy_system(solar_cost, onshore_wind_cost, offshore_wind_cost, river_cost, battery_cost, yearly_demand, solar_range, wind_range, river_range, offshore_wind_range, thresholds, selected_tech):
|