Skip to content

Commit 69d2b88

Browse files
authored
Merge pull request #587 from rte-france/dev_1.9.9
Upgrade to version 1.10.0
2 parents d4ba606 + 0fe8736 commit 69d2b88

File tree

109 files changed

+8520
-2280
lines changed

Some content is hidden

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

109 files changed

+8520
-2280
lines changed

.circleci/config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ executors:
2828
jobs:
2929
test:
3030
executor: grid2op-executor
31-
resource_class: medium
31+
resource_class: medium+
3232
parallelism: 4
3333
steps:
3434
- checkout
@@ -151,8 +151,7 @@ jobs:
151151
- run:
152152
command: |
153153
source venv_test/bin/activate
154-
python -m pip install -U "numpy>=1.24,<1.25" "pandas<2.2" "scipy<1.12" numba
155-
python -m pip install -U .[test]
154+
python -m pip install -U "numpy>=1.24,<1.25" "pandas<2.2" "scipy<1.12" numba .[test]
156155
- run:
157156
command: |
158157
source venv_test/bin/activate

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ jobs:
156156

157157
- name: Upload source archive
158158
uses: actions/upload-artifact@v2
159-
if: matrix.config.name == 'darwin' && matrix.python.name == 'cp39'
159+
if: matrix.config.name == 'darwin' && matrix.python.name == 'cp310'
160160
with:
161161
name: grid2op-sources
162162
path: dist/*.tar.gz

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,10 @@ pp_bug_gen_alone.py
399399
test_dunder.py
400400
grid2op/tests/test_fail_ci.txt
401401
saved_multiepisode_agent_36bus_DN_4/
402+
grid2op/tests/requirements.txt
403+
grid2op/tests/venv_test_311/
404+
issue_577/
405+
junk.py
402406

403407
# profiling files
404408
**.prof

CHANGELOG.rst

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,51 @@ Change Log
3232
- [???] properly model interconnecting powerlines
3333

3434

35+
[1.10.0] - 2024-03-06
36+
----------------------
37+
- [BREAKING] the order of the actions in `env.action_space.get_all_unitary_line_set` and
38+
`env.action_space.get_all_unitary_topologies_set` might have changed (this is caused
39+
by a rewriting of these functions in case there is not 2 busbars per substation)
40+
- [FIXED] github CI did not upload the source files
41+
- [FIXED] `l2rpn_utils` module did not stored correctly the order
42+
of actions and observation for wcci_2020
43+
- [FIXED] 2 bugs detected by static code analysis (thanks sonar cloud)
44+
- [FIXED] a bug in `act.get_gen_modif` (vector of wrong size was used, could lead
45+
to some crashes if `n_gen >= n_load`)
46+
- [FIXED] a bug in `act.as_dict` when shunts were modified
47+
- [FIXED] a bug affecting shunts: sometimes it was not possible to modify their p / q
48+
values for certain values of p or q (an AmbiguousAction exception was raised wrongly)
49+
- [FIXED] a bug in the `_BackendAction`: the "last known topoolgy" was not properly computed
50+
in some cases (especially at the time where a line was reconnected)
51+
- [FIXED] `MultiDiscreteActSpace` and `DiscreteActSpace` could be the same classes
52+
on some cases (typo in the code).
53+
- [FIXED] a bug in `MultiDiscreteActSpace` : the "do nothing" action could not be done if `one_sub_set` (or `one_sub_change`)
54+
was selected in `attr_to_keep`
55+
- [ADDED] a method `gridobj.topo_vect_element()` that does the opposite of `gridobj.xxx_pos_topo_vect`
56+
- [ADDED] a mthod `gridobj.get_powerline_id(sub_id)` that gives the
57+
id of all powerlines connected to a given substation
58+
- [ADDED] a convenience function `obs.get_back_to_ref_state(...)`
59+
for the observation and not only the action_space.
60+
- [IMPROVED] handling of "compatibility" grid2op version
61+
(by calling the relevant things done in the base class
62+
in `BaseAction` and `BaseObservation`) and by using the `from packaging import version`
63+
to check version (instead of comparing strings)
64+
- [IMPROVED] slightly the code of `check_kirchoff` to make it slightly clearer
65+
- [IMRPOVED] typing and doc for some of the main classes of the `Action` module
66+
- [IMRPOVED] typing and doc for some of the main classes of the `Observation` module
67+
- [IMPROVED] methods `gridobj.get_lines_id`, `gridobj.get_generators_id`, `gridobj.get_loads_id`
68+
`gridobj.get_storages_id` are now class methods and can be used with `type(env).get_lines_id(...)`
69+
or `act.get_lines_id(...)` for example.
70+
- [IMPROVED] `obs.get_energy_graph()` by giving the "local_bus_id" and the "global_bus_id"
71+
of the bus that represents each node of this graph.
72+
- [IMPROVED] `obs.get_elements_graph()` by giving access to the bus id (local, global and
73+
id of the node) where each element is connected.
74+
- [IMPROVED] description of the different graph of the grid in the documentation.
75+
- [IMPROVED] type hints for the `gym_compat` module (more work still required in this area)
76+
- [IMPROVED] the `MultiDiscreteActSpace` to have one "dimension" controling all powerlines
77+
(see "one_line_set" and "one_line_change")
78+
- [IMPROVED] doc at different places, including the addition of the MDP implemented by grid2op.
79+
3580
[1.9.8] - 2024-01-26
3681
----------------------
3782
- [FIXED] the `backend.check_kirchoff` function was not correct when some elements were disconnected

0 commit comments

Comments
 (0)