Skip to content
Snippets Groups Projects
Commit ffab00ef authored by Neta Zmora's avatar Neta Zmora
Browse files

AMC jupyter: sort list of experiment subdirs

parent bbdb19de
No related branches found
No related tags found
No related merge requests found
...@@ -270,13 +270,16 @@ class AnimatedScatter(object): ...@@ -270,13 +270,16 @@ class AnimatedScatter(object):
def get_immediate_subdirs(a_dir): def get_immediate_subdirs(a_dir):
return [os.path.join(a_dir, name) for name in os.listdir(a_dir) subdirs = [os.path.join(a_dir, name) for name in os.listdir(a_dir)
if os.path.isdir(os.path.join(a_dir, name)) and name != "ft"] if os.path.isdir(os.path.join(a_dir, name)) and name != "ft"]
subdirs.sort()
return subdirs
def load_experiment_instances(dir_with_experiments): def load_experiment_instances(dir_with_experiments):
experiment_instance_dirs = get_immediate_subdirs(dir_with_experiments) experiment_instance_dirs = get_immediate_subdirs(dir_with_experiments)
return [pd.read_csv(os.path.join(dirname, "amc.csv")) for dirname in experiment_instance_dirs] return [pd.read_csv(os.path.join(dirname, "amc.csv"))
for dirname in experiment_instance_dirs.sort()]
def plot_experiment_comparison(df_list): def plot_experiment_comparison(df_list):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment