fix: Use correct filename when checking for previous plots
This commit is contained in:
parent
9e4efd5dc6
commit
37a3026132
1 changed files with 1 additions and 1 deletions
2
plot.py
2
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 = '{}/{}_extrapolated_to_{}_percent'.format(plots_folder, filename_stand, print_percentage)
|
||||||
plot_filename_latest = '{}/latest_extrapolated_to_{}_percent'.format(plots_folder, 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))
|
print('Plot {} already exists'.format(plot_filename))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue