We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd62ddc commit 7fa70e5Copy full SHA for 7fa70e5
1 file changed
climada/entity/impact_funcs/trop_cyclone.py
@@ -487,13 +487,13 @@ def get_regions_per_countries(
487
elif code_type == "ISO3N" and isinstance((countries[0]), str):
488
raise ValueError("ISO3N code type cannot have string values.")
489
490
- country_dict = getattr(CountryCode, code_type).value
+ region_country_dict = getattr(CountryCode, code_type).value
491
# Find region
492
regions_ids = [
493
- key
+ region_id
494
for country in countries
495
- for key, value in country_dict.items()
496
- if country in value
+ for region_id, countr_in_region_id in region_country_dict.items()
+ if country in countr_in_region_id
497
]
498
# Find impact function id
499
impf_ids = [CountryCode.IMPF_ID.value[region] for region in regions_ids]
0 commit comments