Giter Club home page Giter Club logo

grid2game's People

Contributors

bdonnot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

grid2game's Issues

Finish to code the "save" part

  • With the proper actions of the agent
  • And with the right seed

That might require to not use the grid2op runner however :-/

grid2op does not run

I try to run grid2game via terminal with this command line

grid2game --dev --env_name l2rpn_case14_sandbox

but it does not run and I get this

2022-05-25 13:55:42,068 - grid2game.VizServer VizServer.py.102 | INFO:: Dash app initialized
Dash app initialized
/home/najarfar/anaconda3/envs/grid2op/lib/python3.9/site-packages/grid2op/MakeEnv/Make.py:413: UserWarning: It is the first time you use the environment "l2rpn_case14_sandbox".
We will attempt to download this environment from remote
  warnings.warn(_MAKE_FIRST_TIME_WARN.format(dataset_name))
downloading the training data, this may take a while.
l2rpn_case14_sandbox.tar.bz2: 294MB [00:04, 70.7MB/s]                           
Extract the tar archive in "/home/najarfar/data_grid2op"
	 Successfully updated file "config.py" for environment "l2rpn_case14_sandbox"
	 Successfully updated file "grid.json" for environment "l2rpn_case14_sandbox"
You may now use the environment "l2rpn_case14_sandbox" with the available data by invoking:
	env = grid2op.make("l2rpn_case14_sandbox")
2022-05-25 13:56:27,636 - grid2game.VizServer.Env env.py.67 | INFO:: Grid2op environment initialized
Grid2op environment initialized
2022-05-25 13:56:27,636 - grid2game.VizServer.Env env.py.133 | INFO:: attempt to load assistant with path : ""
attempt to load assistant with path : ""
2022-05-25 13:56:27,637 - grid2game.VizServer.Env env.py.152 | INFO:: assistant loaded with class <class 'grid2op.Agent.doNothing.DoNothingAgent'>
assistant loaded with class <class 'grid2op.Agent.doNothing.DoNothingAgent'>
2022-05-25 13:56:28,108 - grid2game.VizServer.Env env.py.295 | INFO:: Setting env seed 0 and resetting the environment.
Setting env seed 0 and resetting the environment.
2022-05-25 13:56:28,108 - grid2game.VizServer.Env env.py.298 | INFO:: seed: resetting the environment
seed: resetting the environment
2022-05-25 13:56:28,319 - grid2game.VizServer VizServer.py.142 | INFO:: Environment initialized
Environment initialized
2022-05-25 13:56:29,077 - grid2game.VizServer VizServer.py.185 | INFO:: Viz server initialized
Viz server initialized
2022-05-25 13:56:29,078 - grid2game.VizServer dash.py.2045 | INFO:: Dash is running on http://127.0.0.1:8050/

Dash is running on http://127.0.0.1:8050/

 * Serving Flask app 'grid2game.VizServer' (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
2022-05-25 13:56:30,954 - grid2game.VizServer VizServer.py.102 | INFO:: Dash app initialized
Dash app initialized
2022-05-25 13:56:33,304 - grid2game.VizServer.Env env.py.67 | INFO:: Grid2op environment initialized
Grid2op environment initialized
2022-05-25 13:56:33,304 - grid2game.VizServer.Env env.py.133 | INFO:: attempt to load assistant with path : ""
attempt to load assistant with path : ""
2022-05-25 13:56:33,305 - grid2game.VizServer.Env env.py.152 | INFO:: assistant loaded with class <class 'grid2op.Agent.doNothing.DoNothingAgent'>
assistant loaded with class <class 'grid2op.Agent.doNothing.DoNothingAgent'>
2022-05-25 13:56:33,855 - grid2game.VizServer.Env env.py.295 | INFO:: Setting env seed 0 and resetting the environment.
Setting env seed 0 and resetting the environment.
2022-05-25 13:56:33,856 - grid2game.VizServer.Env env.py.298 | INFO:: seed: resetting the environment
seed: resetting the environment
2022-05-25 13:56:34,064 - grid2game.VizServer VizServer.py.142 | INFO:: Environment initialized
Environment initialized
2022-05-25 13:56:34,792 - grid2game.VizServer VizServer.py.185 | INFO:: Viz server initialized
Viz server initialized

It stops at the last line and nothing happens next.

When there is a gameover, this error occurs

grid2op.Exceptions.ObservationExceptions.NoForecastAvailable: Grid2OpException NoForecastAvailable "Forecast for 1 timestep(s) ahead is not possible with your chronics."

Improve overall speed

Especially, don't update the complete graph figure when not needed, and update only the things that changed

Change the color of the timeline based on something

At first, we could put in red with a different shape the game over button.

Then we could also emphasize the current step displayed

Then, when there is a path from the beginning of the episode, to the end, without game over, we could highlight this path in green for example

Later on, the color could indicate some macro indicators

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.