Commit e5356479 authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Fixed bug generated with previous commit

parent 846e09c6
......@@ -1380,13 +1380,13 @@ def generate_country_industrial_cells(
# Load exposure file of the aggregated exposure model:
try:
aggr_model_filepath = os.path.join(aggr_model_pathname, "Exposure_Ind_%s.csv" % (country))
aggr_mod_df = pd.read_csv(os.path.join(aggr_model_pathname,
"Exposure_Ind_%s.csv" % (country)),
sep=",") # aggr_mod_df is a Pandas DataFrame
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
aggr_mod_df = pd.read_csv(aggr_model_filepath, sep=",") # aggr_mod_df is a Pandas DataFrame
aggr_mod_df = pd.read_csv(os.path.join(aggr_model_pathname,
"Exposure_Model_%s_Ind.csv" % (country)),
sep=",") # aggr_mod_df is a Pandas DataFrame
# Load country boundaries:
boundaries_filepath = os.path.join(
......
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