Skip to content

Commit 4d67021

Browse files
committed
Only run baseline if it exists
1 parent c88f386 commit 4d67021

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

eval/evaluate_mueller.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ def plot_hist(system, paths, trajectories_to_plot, seed=1):
5959
global_minimum_energy = min(global_minimum_energy, minimize(system.U, point).fun)
6060
print("Global minimum energy", global_minimum_energy)
6161

62+
all_paths = [(name, path, warmup) for name, path, warmup in all_paths if os.path.exists(path)]
63+
print('Running script for the following paths:')
64+
[print(name, path) for name, path, warmup in all_paths]
65+
assert len(all_paths) > 0, 'No paths found, please consider running tps_baseline_mueller.py first.'
66+
6267
all_paths = [(name, load(path)[warmup:],) for name, path, warmup in all_paths]
6368
[print(name, len(path)) for name, path in all_paths]
6469

0 commit comments

Comments
 (0)