Skip to content

Commit

Permalink
Make sure we continue finding random start times after reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
javiarrobas committed Sep 20, 2024
1 parent 9b6f5e1 commit be2f3de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion boptestGymEnv.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,8 @@ def find_start_time():
return start_time

# Assign random start_time if start_time is None
if not self.start_time:
if not self.start_time or self.random_start_time:
self.random_start_time = True
self.start_time = find_start_time()

# Initialize the building simulation
Expand Down

0 comments on commit be2f3de

Please sign in to comment.