Skip to content

Commit

Permalink
adjust object initiation
Browse files Browse the repository at this point in the history
  • Loading branch information
aleeciu committed Oct 29, 2024
1 parent 8e9b629 commit 37bb860
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions climada_petals/entity/impact_funcs/river_flood.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,25 +369,21 @@ def flood_imp_func_set(sector="residential"):
"""Builds impact function set for river flood, using standard files. By default, it reads
functions for the residential sector"""

impf_set = ImpactFuncSet()

impf_africa = ImpfRiverFlood.from_jrc_region_sector("Africa", sector=sector)
impf_set.append(impf_africa)

impf_asia = ImpfRiverFlood.from_jrc_region_sector("Asia", sector=sector)
impf_set.append(impf_asia)

impf_europe = ImpfRiverFlood.from_jrc_region_sector("Europe", sector=sector)
impf_set.append(impf_europe)

impf_na = ImpfRiverFlood.from_jrc_region_sector("NorthAmerica", sector=sector)
impf_set.append(impf_na)

impf_oceania = ImpfRiverFlood.from_jrc_region_sector("Oceania", sector=sector)
impf_set.append(impf_oceania)

impf_sa = ImpfRiverFlood.from_jrc_region_sector("SouthAmerica", sector=sector)
impf_set.append(impf_sa)

impf_set = ImpactFuncSet([
impf_africa,
impf_asia,
impf_europe,
impf_na,
impf_oceania,
impf_sa
])

return impf_set

Expand Down

0 comments on commit 37bb860

Please sign in to comment.