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