From 775341c3aff65f666da8300de5ca51b86dab6f5e Mon Sep 17 00:00:00 2001 From: sp Date: Thu, 18 Jan 2024 23:29:15 +0100 Subject: [PATCH] fixed typo in info callback --- examples/shields/rl/sb3utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/shields/rl/sb3utils.py b/examples/shields/rl/sb3utils.py index 9092997..dcf20d2 100644 --- a/examples/shields/rl/sb3utils.py +++ b/examples/shields/rl/sb3utils.py @@ -113,6 +113,6 @@ class InfoCallback(BaseCallback): self.logger.record("info/sum_ran_into_lava", self.sum_lava) if "collision" in infos: if infos["collision"]: - self.sum_collision += 1 + self.sum_collisions += 1 self.logger.record("info/sum_collision", self.sum_collisions) return True