Skip to content

Commit 8a17470

Browse files
committed
kind of forced to comment this to avoid circular imports atm
1 parent 087ad75 commit 8a17470

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/agentlab/experiments/loop.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from PIL import Image
2626
from tqdm import tqdm
2727

28-
from agentlab.agents.tapeagent import TapeAgent, save_tape
28+
# from agentlab.agents.tapeagent import TapeAgent, save_tape
2929

3030
logger = logging.getLogger(__name__)
3131

@@ -475,9 +475,9 @@ def run(self):
475475
err_msg = f"Exception uncaught by agent or environment in task {self.env_args.task_name}.\n{type(e).__name__}:\n{e}"
476476
logger.info("Saving experiment info.")
477477
self.save_summary_info(episode_info, Path(self.exp_dir), err_msg, stack_trace)
478-
if isinstance(agent, TapeAgent):
479-
task = getattr(env, "task", {})
480-
save_tape(self.exp_dir, episode_info, task, agent.final_tape)
478+
# if isinstance(agent, TapeAgent):
479+
# task = getattr(env, "task", {})
480+
# save_tape(self.exp_dir, episode_info, task, agent.final_tape)
481481
except Exception as e:
482482
logger.exception(f"Error while saving experiment info: {e}")
483483
try:
@@ -880,7 +880,7 @@ def _move_old_exp(exp_dir):
880880
def _get_env_name(task_name: str):
881881
"""Register tasks if needed (lazy import) and return environment name."""
882882

883-
# lazy benchmark import
883+
# lazy import
884884
if task_name.startswith("miniwob"):
885885
import browsergym.miniwob
886886
elif task_name.startswith("workarena"):

0 commit comments

Comments
 (0)