Skip to content

Commit d3a1c06

Browse files
authored
Merge pull request #634 from BDonnot/bd_dev
Bd dev
2 parents fdbe084 + 03df698 commit d3a1c06

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+760
-220
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,14 @@ Next release
6363
- TODO in multi-mix increase the reset options with the mix the user wants
6464
- TODO L2RPN scores as reward (sum loads after the game over and have it in the final reward)
6565
- TODO on CI: test only gym, only gymnasium and keep current test for both gym and gymnasium
66+
- TODO work on the reward class (see https://github.com/rte-france/Grid2Op/issues/584)
67+
6668

6769
[1.10.4] - 2024-xx-yy
6870
-------------------------
69-
71+
- [FIXED] an issue in the backend: if the backend failed to be
72+
created the `_grid` attribute was set to `None` and not set back to
73+
- [FIXED] the `self.skip_if_needed()` was missing for one of the test suite.
7074

7175
[1.10.3] - 2024-07-12
7276
-------------------------

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ The complete test suit is run on linux with the latest numpy version on python 3
305305

306306
### Known issues
307307

308+
309+
#### Multi processing
308310
Due to the underlying behaviour of the "multiprocessing" package on windows based python versions,
309311
the "multiprocessing" of the grid2op "Runner" is not supported on windows. This might change in the future,
310312
but it is currently not on our priorities.
@@ -316,6 +318,11 @@ Sometimes, on some configuration (python version) we do not recommend to use gri
316318
If you encounter any trouble, please downgrade to pandas<2.2. This behaviour occured in our continuous
317319
integration environment for python >=3.9 but could not be reproduced locally.
318320

321+
#### python 3.11
322+
Some version of grid2op (*eg* 1.6.3) are not compatible with python 3.10 or 3.11.
323+
324+
Either use python version 3.8 or 3.9 or upgrade grid2op (1.6.5 works) if that is the case.
325+
319326
### Perform tests locally
320327

321328
Provided that Grid2Op is installed *from source*:

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'Benjamin Donnot'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '1.10.3'
25+
release = '1.10.4.dev0'
2626
version = '1.10'
2727

2828

docs/data_pipeline.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ Results are reported in the table below:
5555
============================== ================ ===================
5656
Method used memory footprint time to perform (s)
5757
============================== ================ ===================
58-
Nothing (see `Basic Usage`_) low 44.6
59-
set_chunk (see `Chunk size`_) ultra low 26.8
60-
`MultifolderWithCache`_ high 11.0
58+
Nothing (see Basic Usage ) low 44.6
59+
set_chunk (see `Chunk size`_ ) ultra low 26.8
60+
`MultifolderWithCache`_ high 11.0
6161
============================== ================ ===================
6262

6363
As you can see, the default usage uses relatively little memory but takes a while to compute (almost 45s to perform

docs/developer.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. toctree::
2+
:maxdepth: 1
3+
4+
developer/env_content
5+
developer/create_an_environment
6+
developer/createbackend
7+
8+
.. include:: final.rst

docs/create_an_environment.rst renamed to docs/developer/create_an_environment.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
.. |l2rpn_case14_sandbox_layout| image:: ./img/l2rpn_case14_sandbox_layout.png
2-
.. |R2_full_grid| image:: ./img/R2_full_grid.png
3-
.. |l2rpn_neurips_2020_track1_layout| image:: ./img/l2rpn_neurips_2020_track1_layout.png
4-
.. |l2rpn_neurips_2020_track2_layout| image:: ./img/l2rpn_neurips_2020_track2_layout.png
5-
.. |l2rpn_wcci_2022_layout| image:: ./img/l2rpn_wcci_2022_layout.png
1+
.. |l2rpn_case14_sandbox_layout| image:: ../img/l2rpn_case14_sandbox_layout.png
2+
.. |R2_full_grid| image:: ../img/R2_full_grid.png
3+
.. |l2rpn_neurips_2020_track1_layout| image:: ../img/l2rpn_neurips_2020_track1_layout.png
4+
.. |l2rpn_neurips_2020_track2_layout| image:: ../img/l2rpn_neurips_2020_track2_layout.png
5+
.. |l2rpn_wcci_2022_layout| image:: ../img/l2rpn_wcci_2022_layout.png
66

77

88
Possible workflow to create an environment from existing time series

docs/createbackend.rst renamed to docs/developer/createbackend.rst

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@
2121
.. _line_or_pos_topo_vect: ./space.html#grid2op.Space.GridObjects.line_or_pos_topo_vect
2222
.. _line_ex_pos_topo_vect: ./space.html#grid2op.Space.GridObjects.line_ex_pos_topo_vect
2323

24-
.. |5subs_grid_layout| image:: ./img/5subs_grid_layout.jpg
25-
.. |5subs_grid_1_sub| image:: ./img/5subs_grid_1_sub.jpg
26-
.. |5subs_grid_2_loads| image:: ./img/5subs_grid_2_loads.jpg
27-
.. |5subs_grid_3_gens| image:: ./img/5subs_grid_3_gens.jpg
28-
.. |5subs_grid_4_lines| image:: ./img/5subs_grid_4_lines.jpg
29-
.. |5subs_grid_5_obj_in_sub| image:: ./img/5subs_grid_5_obj_in_sub.jpg
30-
.. |5subs_grid_layout_with_repr| image:: ./img/5subs_grid_layout_with_repr.jpg
31-
.. |5subs_grid_n_el| image:: ./img/5subs_grid_n_el.jpg
32-
.. |5subs_grid_5_sub_i| image:: ./img/5subs_grid_5_sub_i.jpg
33-
.. |5subs_grid_load_to_subid| image:: ./img/5subs_grid_load_to_subid.jpg
34-
.. |5subs_grid_el_to_subid| image:: ./img/5subs_grid_el_to_subid.jpg
35-
.. |5subs_grid_sub0| image:: ./img/5subs_grid_sub0.jpg
36-
.. |5subs_grid_sub0_final| image:: ./img/5subs_grid_sub0_final.jpg
37-
.. |5subs_grid_sub1_final| image:: ./img/5subs_grid_sub1_final.jpg
38-
.. |5subs_grid_loads_info| image:: ./img/5subs_grid_loads_info.jpg
39-
.. |5subs_grid_sub1_topo| image:: ./img/5subs_grid_sub1_topo.jpg
40-
.. |5subs_grid_sub1_2_topo| image:: ./img/5subs_grid_sub1_2_topo.jpg
41-
.. |5subs_grid_suball_topo| image:: ./img/5subs_grid_suball_topo.jpg
42-
.. |5subs_grid_ex_disco| image:: ./img/5subs_grid_ex_disco.jpg
43-
.. |5subs_grid_ex_2buses| image:: ./img/5subs_grid_ex_2buses.jpg
24+
.. |5subs_grid_layout| image:: ../img/5subs_grid_layout.jpg
25+
.. |5subs_grid_1_sub| image:: ../img/5subs_grid_1_sub.jpg
26+
.. |5subs_grid_2_loads| image:: ../img/5subs_grid_2_loads.jpg
27+
.. |5subs_grid_3_gens| image:: ../img/5subs_grid_3_gens.jpg
28+
.. |5subs_grid_4_lines| image:: ../img/5subs_grid_4_lines.jpg
29+
.. |5subs_grid_5_obj_in_sub| image:: ../img/5subs_grid_5_obj_in_sub.jpg
30+
.. |5subs_grid_layout_with_repr| image:: ../img/5subs_grid_layout_with_repr.jpg
31+
.. |5subs_grid_n_el| image:: ../img/5subs_grid_n_el.jpg
32+
.. |5subs_grid_5_sub_i| image:: ../img/5subs_grid_5_sub_i.jpg
33+
.. |5subs_grid_load_to_subid| image:: ../img/5subs_grid_load_to_subid.jpg
34+
.. |5subs_grid_el_to_subid| image:: ../img/5subs_grid_el_to_subid.jpg
35+
.. |5subs_grid_sub0| image:: ../img/5subs_grid_sub0.jpg
36+
.. |5subs_grid_sub0_final| image:: ../img/5subs_grid_sub0_final.jpg
37+
.. |5subs_grid_sub1_final| image:: ../img/5subs_grid_sub1_final.jpg
38+
.. |5subs_grid_loads_info| image:: ../img/5subs_grid_loads_info.jpg
39+
.. |5subs_grid_sub1_topo| image:: ../img/5subs_grid_sub1_topo.jpg
40+
.. |5subs_grid_sub1_2_topo| image:: ../img/5subs_grid_sub1_2_topo.jpg
41+
.. |5subs_grid_suball_topo| image:: ../img/5subs_grid_suball_topo.jpg
42+
.. |5subs_grid_ex_disco| image:: ../img/5subs_grid_ex_disco.jpg
43+
.. |5subs_grid_ex_2buses| image:: ../img/5subs_grid_ex_2buses.jpg
4444

4545
.. _create-backend-module:
4646

@@ -689,15 +689,16 @@ These functions can be used in the following manner:
689689
690690
And of course you do the same for generators and both ends of each powerline.
691691

692-
.. note:: About powerline, grid2op adopts the following convention: a powerline **cannot** be connected on one side
692+
.. note::
693+
About powerline, grid2op adopts the following convention: a powerline **cannot** be connected on one side
693694
and disconnected on the other.
694695

695696
That being said, it's still possible to connect the extremity of a powerline "alone" on a busbar, which will have
696697
the same effect of having it "disconnected at one ends only".
697698

698699
.. _vector-orders-create-backend:
699700

700-
***_infos() : Read back the results (flows, voltages etc.)
701+
\*\*\*_infos() : Read back the results (flows, voltages etc.)
701702
--------------------------------------------------------------
702703
This last "technical" part concerns what can be refer to as "getters" from the backend. These functions allow to
703704
read back the state of the grid and expose its results to grid2op in a standardize manner.

docs/env_content.rst renamed to docs/developer/env_content.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
.. |l2rpn_case14_sandbox_layout| image:: ./img/l2rpn_case14_sandbox_layout.png
3-
.. |R2_full_grid| image:: ./img/R2_full_grid.png
4-
.. |l2rpn_neurips_2020_track1_layout| image:: ./img/l2rpn_neurips_2020_track1_layout.png
5-
.. |l2rpn_neurips_2020_track2_layout| image:: ./img/l2rpn_neurips_2020_track2_layout.png
6-
.. |l2rpn_wcci_2022_layout| image:: ./img/l2rpn_wcci_2022_layout.png
2+
.. |l2rpn_case14_sandbox_layout| image:: ../img/l2rpn_case14_sandbox_layout.png
3+
.. |R2_full_grid| image:: ../img/R2_full_grid.png
4+
.. |l2rpn_neurips_2020_track1_layout| image:: ../img/l2rpn_neurips_2020_track1_layout.png
5+
.. |l2rpn_neurips_2020_track2_layout| image:: ../img/l2rpn_neurips_2020_track2_layout.png
6+
.. |l2rpn_wcci_2022_layout| image:: ../img/l2rpn_wcci_2022_layout.png
77

88

99
Content of an environment

docs/developer/final.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
.. include:: ../final.rst

docs/grid2op.rst

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ competitions.
2626
This platform is still under development. If you notice a bug, let us know with a github issue at
2727
`Grid2Op <https://github.com/rte-france/Grid2Op>`_
2828

29-
.. note:: Grid2op do not model any object on the powergrid. It has no internal modeling of the equations of the
29+
.. note::
30+
Grid2op do not model any object on the powergrid. It has no internal modeling of the equations of the
3031
grids, or what kind of solver you need to adopt.
3132

3233
On the other hand, grid2op aims at representing the grid in a relatively "high level" point of view: it knows
@@ -43,6 +44,7 @@ This platform is still under development. If you notice a bug, let us know with
4344

4445
Objectives
4546
-----------
47+
4648
The primary goal of grid2op is to model decision making process in power systems. Indeed, we believe that developing
4749
new flexibilities on the grid would make the
4850
"energy transition" an easier, less costly process.
@@ -72,7 +74,8 @@ Though grid2op has been primarily developed for the L2RPN competitions series, i
7274
can also help developing and benchmarking new powerflow solvers for example.
7375

7476
Controlling the grid
75-
--------------------
77+
---------------------
78+
7679
Modeling all what happens in the powergrid would be an extremely difficult task. Grid2op focusing on controls
7780
that could be done today by a human (happening with **a frequency of approximately the minute**). It does not
7881
aim at simulation really high frequency control that are often automatic today. That being said, such controls
@@ -107,8 +110,10 @@ Other "flexibilities" (ways to act on the grid) are coming soon (-:
107110
solver uses some physical laws to compute these "weights" from the amount of power produced / absorbed in
108111
different part of the grid where generators and loads are connected).
109112

113+
110114
What is modeled in an grid2op environment
111-
-----------------------------------------
115+
------------------------------------------
116+
112117
The simulator is able to emulate a power grid (of any size or characteristics) subject to a set of
113118
temporal injections (productions and consumptions) or maintenance / hazards for discretized
114119
time-steps (usually there is the equivalent of *5* minutes between two consective steps).
@@ -216,7 +221,8 @@ Module Name Main usage
216221
============================= =========================================================================================
217222

218223
Properties of this environments
219-
-------------------------------
224+
--------------------------------
225+
220226
The grid2op environments have multiple shared properties:
221227

222228
- highly constrained environments: these environments obey physical laws. You cannot directly choose how much
@@ -398,7 +404,7 @@ If it fails between "now" and "12 steps from now" reward associated with alert w
398404
negative (this is the situation where the agent should have told the human operator "help me").
399405

400406

401-
Let's replay again (again ?) the same scenario again: same attack, same everything:
407+
Let's replay again (again ?) the same scenario: same attack, same everything:
402408

403409
.. code-block:: python
404410
@@ -457,7 +463,8 @@ that are available, without any installation thanks to
457463
`Binder <https://mybinder.org/v2/gh/rte-france/Grid2Op/master>`_ . Feel free to visit the "getting_started" page for
458464
more information and a detailed tour about the issue that grid2op tries to address.
459465

460-
.. note:: As of writing (december 2020) most of these notebooks focus on the "agent" part of grid2op. We would welcome
466+
.. note::
467+
As of writing (december 2020) most of these notebooks focus on the "agent" part of grid2op. We would welcome
461468
any contribution to better explain the other aspect of this platform.
462469

463470
.. include:: final.rst

0 commit comments

Comments
 (0)