From 1859c8cd62e9668d59bd434e1a91ee5185a2d038 Mon Sep 17 00:00:00 2001 From: Elisei Shafer <16764947+elishafer@users.noreply.github.com> Date: Sun, 31 Mar 2024 14:22:17 +0300 Subject: [PATCH] BUG FIX: While loop not entered in record_transitions.py in bin example 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 --- examples/async_bin_relocation_fwbw_drq/record_transitions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/async_bin_relocation_fwbw_drq/record_transitions.py b/examples/async_bin_relocation_fwbw_drq/record_transitions.py index e61afd43..8c4e4bf2 100644 --- a/examples/async_bin_relocation_fwbw_drq/record_transitions.py +++ b/examples/async_bin_relocation_fwbw_drq/record_transitions.py @@ -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"]