-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to define path_save in grid2op.make? #52
Comments
Hello As explained in the notebook 0 (last few cells) you can do it this way: import grid2op
from grid2op.Runner import Runner
env = grid2op.make()
runner = Runner(**env.get_params_for_runner()) Once your runner is initialized, you can use it to compute any number of scenarios that you want, with what is explained in notebook 4: res = runner.run(path_save="THE\PATH\HERE",
nb_episode=2, # number of episode to run, any positive integer
max_iter=100 # maximum number of steps per episode, any positive integer
) Sorry if the stuff are not properly organized Benjamin |
Thanks. It works like this:
Maybe such a working example could be included in the documentation? That's where i looked. |
BDonnot
added a commit
that referenced
this issue
May 21, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using the grid2op.make function to generator a runner with an environment. How is it possible to define the path where the logs are saved in this function?
The text was updated successfully, but these errors were encountered: