Skip to content

Commit 2ef3bf7

Browse files
committed
Fix small typo preventing future analyses
1 parent a87912b commit 2ef3bf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/code/notebook_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,13 @@ def export_charts(output_dir: str, country: str, haz_cat: str, period: str, scen
329329
charts: dict, exp_cat_list: list[str]):
330330
chart_dir = os.path.join(output_dir, 'charts')
331331
os.makedirs(chart_dir, exist_ok=True)
332-
basee_file_name = f"{country}_{haz_cat}_{period}"
332+
base_file_name = f"{country}_{haz_cat}_{period}"
333333

334334
if period != "2020":
335335
base_file_name += f"_{scenario}"
336336

337337
for i, (chart, exp_cat) in enumerate(zip(charts, exp_cat_list)):
338-
chart_filename = os.path.join(chart_dir, f"{basee_file_name}_{exp_cat}.png")
338+
chart_filename = os.path.join(chart_dir, f"{base_file_name}_{exp_cat}.png")
339339
chart.savefig(chart_filename, dpi=300, bbox_inches='tight')
340340
print(f"Saved chart to: {chart_filename}.")
341341

0 commit comments

Comments
 (0)