Commit 846e09c6 authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Added alternative ESRM20 file naming

parent df71ff91
......@@ -1379,7 +1379,10 @@ def generate_country_industrial_cells(
return
# Load exposure file of the aggregated exposure model:
aggr_model_filepath = os.path.join(aggr_model_pathname, "Exposure_Ind_%s.csv" % (country))
try:
aggr_model_filepath = os.path.join(aggr_model_pathname, "Exposure_Ind_%s.csv" % (country))
except:
aggr_model_filepath = os.path.join(aggr_model_pathname, "Exposure_Model_%s_Ind.csv" % (country))
if not os.path.isfile(aggr_model_filepath):
print("ERROR in generate_country_industrial_cells: aggregated model file not found")
return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment