From 3535c3de93da25070627ca5fea917e05f11cd695 Mon Sep 17 00:00:00 2001 From: Blake Elias Date: Thu, 17 Feb 2022 22:19:04 +0000 Subject: [PATCH] Print statement when loading cached trajectory --- code/policy_comparison.py | 1 + 1 file changed, 1 insertion(+) diff --git a/code/policy_comparison.py b/code/policy_comparison.py index 43784c9..a328ea0 100644 --- a/code/policy_comparison.py +++ b/code/policy_comparison.py @@ -17,6 +17,7 @@ def compare_policies(env, gamma, default_policy_fns, custom_policies=(), load_ca file_path = Path(env.file_name_prefix) / f'policy_evaluations_trial_{trial_num}.pickle' try: if load_cached: + print('Loading cached trajectory') return load_pickle(file_path) else: raise Exception() # i.e. skip to `except` clause