Skip to content

Commit

Permalink
capture unknown sector
Browse files Browse the repository at this point in the history
  • Loading branch information
aleeciu committed Aug 7, 2024
1 parent bc9e612 commit e13cd5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions climada_petals/entity/impact_funcs/river_flood.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ def from_jrc_region_sector(cls, region, sector="residential"):
elif sector == 'agriculture':
impf_values, impf_id = from_jrc_impf_agriculture(region)

else:
raise ValueError(f"Unrecognized sector: {sector}")

Check warning on line 112 in climada_petals/entity/impact_funcs/river_flood.py

View check run for this annotation

Jenkins - WCR / Code Coverage

Not covered lines

Lines 96-112 are not covered by tests

impf = cls()
impf.name = f"Flood {region} JRC {sector.capitalize()} noPAA"
impf.continent = f"{region}"
Expand Down

0 comments on commit e13cd5b

Please sign in to comment.