Skip to content

Commit

Permalink
Bug fix when "baselines" folder did not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
araffin committed Sep 24, 2018
1 parent 2b88851 commit 1c0a6e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions evaluation/gather_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ def computeStates(exp_config, log_dir):
if 'baselines' not in item and os.path.isdir('{}/{}'.format(log_dir, item)):
experiments.append(item)

for item in os.listdir(log_dir + "/baselines"):
experiments.append('baselines/' + item)
if os.path.isdir(log_dir + "/baselines"):
for item in os.listdir(log_dir + "/baselines"):
experiments.append('baselines/' + item)

experiments.sort()
print("Found {} experiments".format(len(experiments)))
Expand Down

0 comments on commit 1c0a6e5

Please sign in to comment.