From 37a3026132679fd5026ba070185da619dad553aa Mon Sep 17 00:00:00 2001 From: Benedikt Bastin Date: Sun, 17 Jan 2021 00:00:07 +0100 Subject: [PATCH] fix: Use correct filename when checking for previous plots --- plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot.py b/plot.py index 2648758..9a8591d 100644 --- a/plot.py +++ b/plot.py @@ -85,7 +85,7 @@ def plot_extrapolation_portion(percentage): plot_filename = '{}/{}_extrapolated_to_{}_percent'.format(plots_folder, filename_stand, print_percentage) plot_filename_latest = '{}/latest_extrapolated_to_{}_percent'.format(plots_folder, print_percentage) - if os.path.isfile(plot_filename): + if os.path.isfile(plot_filename + 'pdf'): print('Plot {} already exists'.format(plot_filename)) return