Adjust pae.png file name patterns

This commit is contained in:
Dima Molodenskiy
2024-10-22 15:40:54 +02:00
parent cdc5253223
commit 1a6c704bba

View File

@@ -15,7 +15,7 @@ from af2plots.plotter import plotter
def display_pae_plots(subdir,figsize=(50, 50)):
"""A function to display all the pae plots in the subdir"""
pattern = r"_PAE_plot_ranked_(\d+)"
pattern = r"pae_plot_ranked_(\d+)"
images = sorted([i for i in os.listdir(subdir) if ".png" in i],
key= lambda x: int(re.search(pattern,x).group(1)))
if len(images) > 0: