@@ -299,8 +299,7 @@ def foo(manager):
299299
300300 #: this are the keys of the dictionnary `options`
301301 #: that can be used when calling `env.reset(..., options={})`
302- KEYS_RESET_OPTIONS = {"time serie id" , "init state" }
303-
302+ KEYS_RESET_OPTIONS = {"time serie id" , "init state" , "init ts" , "max step" }
304303
305304 def __init__ (
306305 self ,
@@ -3776,14 +3775,38 @@ def fast_forward_chronics(self, nb_timestep):
37763775 00:00). This can lead to suboptimal exploration, as during this phase, only a few time steps are managed by
37773776 the agent, so in general these few time steps will correspond to grid state around Jan 1st at 00:00.
37783777
3778+ .. seealso::
3779+ From grid2op version 1.10.3, a similar objective can be
3780+ obtained directly by calling :func:`grid2op.Environment.Environment.reset` with `"init ts"`
3781+ as option, for example like `obs = env.reset(options={"init ts": 12})`
3782+
3783+
3784+ .. danger::
3785+ The usage of both :func:`BaseEnv.fast_forward_chronics` and :func:`Environment.set_max_iter`
3786+ is not recommended at all and might not behave correctly. Please use `env.reset` with
3787+ `obs = env.reset(options={"max step": xxx, "init ts": yyy})` for a correct behaviour.
3788+
37793789 Parameters
37803790 ----------
37813791 nb_timestep: ``int``
37823792 Number of time step to "fast forward"
37833793
37843794 Examples
37853795 ---------
3786- This can be used like this:
3796+
3797+ From grid2op version 1.10.3 we recommend not to use this function (which will be deprecated)
3798+ but to use the :func:`grid2op.Environment.Environment.reset` functon with the `"init ts"`
3799+ option.
3800+
3801+ .. code-block:: python
3802+
3803+ import grid2op
3804+ env_name = "l2rpn_case14_sandbox"
3805+ env = grid2op.make(env_name)
3806+
3807+ obs = env.reset(options={"init ts": 123})
3808+
3809+ For the legacy usave, this can be used like this:
37873810
37883811 .. code-block:: python
37893812
0 commit comments