From 22fc9f7c073c254974830f8ddbb38adfe922fc54 Mon Sep 17 00:00:00 2001 From: Mieszko Makuch Date: Wed, 7 May 2025 12:52:06 +0200 Subject: [PATCH] ISEPOS-2373 Fix: name 'svg_path' is not defined --- src/seismic_hazard_forecasting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/seismic_hazard_forecasting.py b/src/seismic_hazard_forecasting.py index c711f4f..dd8cb7e 100644 --- a/src/seismic_hazard_forecasting.py +++ b/src/seismic_hazard_forecasting.py @@ -505,7 +505,8 @@ verbose: {verbose}") # Save the figure fig.canvas.draw() - plt.savefig("overlay_" + str(j) + ".svg", bbox_inches="tight", pad_inches=0, transparent=True) + svg_path = f"overlay_{j}.svg" + plt.savefig(svg_path, bbox_inches="tight", pad_inches=0, transparent=True) plt.close(fig)