1
0
Fork 0

fix: Use correct filename when checking for previous plots

This commit is contained in:
Benedikt Bastin 2021-01-17 00:00:07 +01:00
parent 9e4efd5dc6
commit 37a3026132
1 changed files with 1 additions and 1 deletions

View File

@ -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