Skip to content

Commit 44cd7c1

Browse files
demo data: include Portugal_firms_2016_17_18_MODIS.csv for Wildfire tutorial
1 parent 2f19873 commit 44cd7c1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

climada/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
DEMO_DIR.joinpath('WS_ERA40_sample.mat'),
8080
DEMO_DIR.joinpath('WS_Europe.xls'),
8181
DEMO_DIR.joinpath('Portugal_firms_June_2017.csv'),
82+
DEMO_DIR.joinpath('Portugal_firms_2016_17_18_MODIS.csv'),
8283
] + WS_DEMO_NC
8384
}
8485

climada/entity/exposures/litpop/litpop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def _set_one_country(country, res_arcsec=30, exponents=(1,1), fin_mode=None,
597597
raise TypeError("total_val_rescale must be int or float.")
598598

599599
exp_country = LitPop()
600-
exp_country.gdf = litpop_gdf
600+
exp_country.set_gdf(litpop_gdf)
601601
exp_country.gdf[INDICATOR_IMPF] = 1
602602
return exp_country
603603

climada/entity/exposures/open_street_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def _split_exposure_highlow(exp_sub, mode, High_Value_Area_gdf):
501501
"Please choose either 'nearest', 'even' or 'proportional'.")
502502

503503
exp = exp_sub.copy(deep=False)
504-
exp.gdf = exp_sub_high
504+
exp.set_gdf(exp_sub_high)
505505
return exp
506506

507507
def get_osmstencil_litpop(bbox, country, mode, highValueArea=None,

0 commit comments

Comments
 (0)