@@ -92,7 +92,7 @@ class CountryCode(Enum):
9292 "NAM" , "NER" , "NGA" , "NLD" , "NOR" , "POL" , "PRK" , "PRT" , "PSE" , "REU" , "ROU" ,
9393 "RUS" , "RWA" , "SDN" , "SEN" , "SGP" , "SGS" , "SJM" , "SLE" , "SMR" , "SPM" , "SRB" ,
9494 "SSD" , "STP" , "SVK" , "SVN" , "SWE" , "SYC" , "TCD" , "TGO" , "TUN" , "TUR" , "UKR" ,
95- "UMI" , "VAT" , "XKX " , "ZMB" ,
95+ "UMI" , "VAT" , "XKO " , "ZMB" ,
9696 ],
9797 }
9898
@@ -365,8 +365,18 @@ def calibrated_regional_vhalf(
365365
366366 @staticmethod
367367 def get_countries_per_region (region = None ):
368- """Returns dictionaries with numerical (numeric) and alphabetical (alpha3) ISO3 codes
369- of all countries associated to a calibration region.
368+ """Returns countries within a tropical cyclone calibration region and associated impact functions.
369+
370+ This method returns a tuple with numerical (numeric) and alphabetical (alpha3)
371+ ISO3 codes of all countries associated to a calibration region.
372+
373+ If no region or "all" is provided as argument, the method return a tuple of
374+ dictionaries with short name of the tropical cyclone calibration regions as
375+ keys and the values for each of those.
376+
377+ Notes
378+ -----
379+
370380 Only contains countries that were affected by tropical cyclones
371381 between 1980 and 2017 according to EM-DAT.
372382
@@ -395,9 +405,12 @@ def get_countries_per_region(region=None):
395405 return (
396406 CountryCode .REGION_NAME .value ,
397407 CountryCode .IMPF_ID .value ,
398- coordinates .country_to_iso (
399- CountryCode .ALPHA3 .value , representation = "numeric"
400- ),
408+ {
409+ reg : coordinates .country_to_iso (
410+ CountryCode .ALPHA3 .value [reg ], representation = "numeric"
411+ )
412+ for reg in CountryCode .REGION_NAME .value
413+ },
401414 CountryCode .ALPHA3 .value ,
402415 )
403416
0 commit comments