Skip to content

Commit

Permalink
Print statement when loading cached trajectory
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeelias committed Feb 17, 2022
1 parent 4ac6906 commit 3535c3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/policy_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3535c3d

Please sign in to comment.