Open LukasFehring opened 2 months ago
Hello, what is your usecase/expected behavior?
the for loop also decompose the info per env:
How so? Both the globals and locals contain information on every environment in the vectorized environment. How am I supposed to determine for which env the callback is called?
there is the local variable "i"
Ah ok sorry then. A documentation of locals and globals would probably help to find that! :)
A documentation of locals and globals would probably help to find that! :)
feel free to open a PR that updates the doc ;)
🐛 Bug
When calling
with a vecenv, then the callback gets executed for each of the environments separately. However, the locals dict contains the aggregated results. Therefore you have to manually check for which environment the callback was called, or only execute it every
n_envs
time.To Reproduce
Relevant log output / Error message
No response
System Info
Checklist