Skip to content

Commit 2c8cc06

Browse files
Logger: union keys across the window instead of sampling from index 0 (#205)
--------- Co-authored-by: ClemensSchwarke <clemens.schwarke@gmail.com>
1 parent 8068577 commit 2c8cc06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rsl_rl/utils/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def log(
158158
extras_string = ""
159159
if self.ep_extras:
160160
# Iterate over all keys in the episode info dictionary
161-
for key in self.ep_extras[0]:
161+
for key in {k for ep_info in self.ep_extras for k in ep_info}:
162162
infotensor = torch.tensor([], device=self.device)
163163
# Iterate over all steps
164164
for ep_info in self.ep_extras:

0 commit comments

Comments
 (0)