bdonnot / grid2game Goto Github PK
View Code? Open in Web Editor NEWA gamification of the "powergrid problem" using grid2op that allows you to "operate" a powergrid.
License: Mozilla Public License 2.0
A gamification of the "powergrid problem" using grid2op that allows you to "operate" a powergrid.
License: Mozilla Public License 2.0
We don't see what the assistant did
Probably because of the deep copy, need more investigation !
Plotly does not require integer positions, there are lots of cast to integer for the position of the objects in plot_grid, which make the interface look "not pretty".
Remove them for a better quality
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.
With the possibility to "get back in time" and "fork" time from a simple click.
the buttons with a red cross or a green tick
To reproduce:
The "manual" actions overids the "assistant" action
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
It's the voltage and not the reactive value
including:
This would be a different tab.
At any state, it would allow to visualize the timeline information agregated from this point of view, for example representing the best trajectory, what would happen if some action is not done etc.
That might require to not use the grid2op runner however :-/
This would Help with the creation of an action and avoid the weird behaviour that we got today when we want to create an action.
Especially, don't update the complete graph figure when not needed, and update only the things that changed
grid2op.Exceptions.ObservationExceptions.NoForecastAvailable: Grid2OpException NoForecastAvailable "Forecast for 1 timestep(s) ahead is not possible with your chronics."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.