def _generate_filename_list(style):
path = os.path.dirname(__file__)
filename_list = ["test_plot_spectra_%s" % s for s in style] + \
["test_plot_spectra_rev_%s" % s for s in style]
filename_list2 = []
for filename in filename_list:
After Change
def _generate_filename_list(style):
path = Path(__file__).resolve().parent
baseline_path = path.joinpath(baseline_dir)
filename_list = [f"test_plot_spectra_{s}" for s in style] + \
[f"test_plot_spectra_rev_{s}" for s in style]