Closed axelbr closed 4 months ago
Hi @axelbr!
The field max_steps_in_episode
is defined in the base class gymnax.environments.environment.EnvParams
, and should therefore be defined in all Gymnax environments. I have thus considered it part of the standard Gymnax interface.
If this leads to a bug with your code (e.g. you have defined EnvParams
that don't inherit from this base class), a simple workaround would be to add the field to your struct (even if it does not do anything). Would that solve your issue?
Thanks for the fast reply. Hm, this isn't documented in Gymnax anywhere, but you are right. I did not notice the type bounds for the generic.
Some part of the code (evaluate.py, line 88), assume that the env params struct has a field
max_steps_in_episode
.