Update demo/pages/engine.py
Browse files- demo/pages/engine.py +4 -4
demo/pages/engine.py
CHANGED
|
@@ -54,16 +54,16 @@ weights = {
|
|
| 54 |
def run_engine(hazard_type, scenario, gdf_intensity, policies=[]):
|
| 55 |
|
| 56 |
building_file = f"building_tv50_{scenario}.geojson"
|
| 57 |
-
household_file = f"household_tv50_{scenario}.
|
| 58 |
-
individual_file = f"individual_tv50_{scenario}.
|
| 59 |
|
| 60 |
threshold = 1
|
| 61 |
threshold_flood = 0.2
|
| 62 |
threshold_flood_distance = 40
|
| 63 |
epsg = 32636 # Nblus
|
| 64 |
df_buildings = gpd.read_file(building_file)
|
| 65 |
-
df_household = pd.
|
| 66 |
-
df_individual = pd.
|
| 67 |
#gdf_intensity = intensity_df.copy()
|
| 68 |
|
| 69 |
# Read vulnerability from this table if hazard is earthquake
|
|
|
|
| 54 |
def run_engine(hazard_type, scenario, gdf_intensity, policies=[]):
|
| 55 |
|
| 56 |
building_file = f"building_tv50_{scenario}.geojson"
|
| 57 |
+
household_file = f"household_tv50_{scenario}.json"
|
| 58 |
+
individual_file = f"individual_tv50_{scenario}.json"
|
| 59 |
|
| 60 |
threshold = 1
|
| 61 |
threshold_flood = 0.2
|
| 62 |
threshold_flood_distance = 40
|
| 63 |
epsg = 32636 # Nblus
|
| 64 |
df_buildings = gpd.read_file(building_file)
|
| 65 |
+
df_household = pd.read_json(household_file)
|
| 66 |
+
df_individual = pd.read_json(individual_file)
|
| 67 |
#gdf_intensity = intensity_df.copy()
|
| 68 |
|
| 69 |
# Read vulnerability from this table if hazard is earthquake
|