Skip to content

Commit f45a6bf

Browse files
committed
reverted to original loop.py
1 parent 6e634d9 commit f45a6bf

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/agentlab/experiments/loop.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,6 @@ def run(self):
415415
try:
416416
logger.info(f"Running experiment {self.exp_name} in:\n {self.exp_dir}")
417417
agent = self.agent_args.make_agent()
418-
419-
# Set training data directory for agents that support it
420-
if hasattr(agent, "set_training_data_dir"):
421-
agent.set_training_data_dir(Path(self.exp_dir))
422-
423418
if hasattr(agent, "set_task_name"):
424419
agent.set_task_name(self.env_args.task_name)
425420

@@ -441,11 +436,6 @@ def run(self):
441436

442437
while not step_info.is_done: # set a limit
443438
logger.debug(f"Starting step {step_info.step}.")
444-
445-
# Set current step for training data capture
446-
if hasattr(agent, "set_current_step"):
447-
agent.set_current_step(step_info.step)
448-
449439
action = step_info.from_action(agent)
450440
logger.debug(f"Agent chose action:\n {action}")
451441

0 commit comments

Comments
 (0)