Skip to content

Commit

Permalink
BUG FIX: While loop not entered in record_transitions.py in bin example
Browse files Browse the repository at this point in the history
Check all done returns false if accumulated transitions is smaller than need transitions. On line 100, check_all_done returns false and never enters the while loop. Fix: put not before check_all_done() inline 100
  • Loading branch information
elishafer authored Mar 31, 2024
1 parent 3322c33 commit 1859c8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def check_all_done():
)

# Loop until we have enough transitions
while check_all_done():
while not check_all_done():
next_obs, rew, done, truncated, info = env.step(action=np.zeros((7,)))
next_obs = env.get_front_cam_obs()
actions = info["intervene_action"]
Expand Down

0 comments on commit 1859c8c

Please sign in to comment.