Skip to content

Commit

Permalink
Merge pull request #585 from BDonnot/master
Browse files Browse the repository at this point in the history
Mdp doc (init) and finish tests on more than 2 busbar per substation
  • Loading branch information
BDonnot authored Mar 1, 2024
2 parents 0fc4848 + 3a36498 commit a722615
Show file tree
Hide file tree
Showing 41 changed files with 2,921 additions and 256 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Change Log
- [???] "asynch" multienv
- [???] properly model interconnecting powerlines


[1.9.9] - 2024-xx-yy
----------------------
- [BREAKING] the order of the actions in `env.action_space.get_all_unitary_line_set` and
Expand All @@ -49,9 +50,13 @@ Change Log
in some cases (especially at the time where a line was reconnected)
- [FIXED] `MultiDiscreteActSpace` and `DiscreteActSpace` could be the same classes
on some cases (typo in the code).
- [FIXED] a bug in `MultiDiscreteActSpace` : the "do nothing" action could not be done if `one_sub_set` (or `one_sub_change`)
was selected in `attr_to_keep`
- [ADDED] a method `gridobj.topo_vect_element()` that does the opposite of `gridobj.xxx_pos_topo_vect`
- [ADDED] a mthod `gridobj.get_powerline_id(sub_id)` that gives the
id of all powerlines connected to a given substation
- [ADDED] a convenience function `obs.get_back_to_ref_state(...)`
for the observation and not only the action_space.
- [IMPROVED] handling of "compatibility" grid2op version
(by calling the relevant things done in the base class
in `BaseAction` and `BaseObservation`) and by using the `from packaging import version`
Expand All @@ -67,6 +72,9 @@ Change Log
- [IMPROVED] `obs.get_elements_graph()` by giving access to the bus id (local, global and
id of the node) where each element is connected.
- [IMPROVED] description of the different graph of the grid in the documentation.
- [IMPROVED] type hints for the `gym_compat` module (more work still required in this area)
- [IMPROVED] the `MultiDiscreteActSpace` to have one "dimension" controling all powerlines
(see "one_line_set" and "one_line_change")

[1.9.8] - 2024-01-26
----------------------
Expand Down
326 changes: 326 additions & 0 deletions docs/_static/hacks.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,326 @@
/*
* CSS hacks and small modification for my Sphinx website
* :copyright: Copyright 2013-2016 Lilian Besson
* :license: GPLv3, see LICENSE for details.
*/


/* Colors and text decoration.
For example, :black:`text in black` or :blink:`text blinking` in rST. */

.black {
color: black;
}

.gray {
color: gray;
}

.grey {
color: gray;
}

.silver {
color: silver;
}

.white {
color: white;
}

.maroon {
color: maroon;
}

.red {
color: red;
}

.magenta {
color: magenta;
}

.fuchsia {
color: fuchsia;
}

.pink {
color: pink;
}

.orange {
color: orange;
}

.yellow {
color: yellow;
}

.lime {
color: lime;
}

.green {
color: green;
}

.olive {
color: olive;
}

.teal {
color: teal;
}

.cyan {
color: cyan;
}

.aqua {
color: aqua;
}

.blue {
color: blue;
}

.navy {
color: navy;
}

.purple {
color: purple;
}

.under {
text-decoration: underline;
}

.over {
text-decoration: overline;
}

.blink {
text-decoration: blink;
}

.line {
text-decoration: line-through;
}

.strike {
text-decoration: line-through;
}

.it {
font-style: italic;
}

.ob {
font-style: oblique;
}

.small {
font-size: small;
}

.large {
font-size: large;
}

.smallpar {
font-size: small;
}


/* Style pour les badges en bas de la page. */

div.supportBadges {
margin: 1em;
text-align: right;
}

div.supportBadges ul {
padding: 0;
display: inline;
}

div.supportBadges li {
display: inline;
}

div.supportBadges a {
margin-right: 1px;
opacity: 0.6;
}

div.supportBadges a:hover {
opacity: 1;
}


/* Details elements in the sidebar */

a.reference {
border-bottom: none;
text-decoration: none;
}

ul.details {
font-size: 80%;
}

ul.details li p {
font-size: 85%;
}

ul.externallinks {
font-size: 85%;
}


/* Pour le drapeau de langue */

img.languageswitch {
width: 50px;
height: 32px;
margin-left: 5px;
vertical-align: bottom;
}

div.sphinxsidebar {
overflow: hidden !important;
font-size: 120%;
word-wrap: break-word;
width: 300px;
max-width: 300px;
}

div.sphinxsidebar h3 {
font-size: 125%;
}

div.sphinxsidebar h4 {
font-size: 110%;
}

div.sphinxsidebar a {
font-size: 85%;
}


/* Image style for scrollUp jQuery plugin */

#scrollUpLeft {
bottom: 50px;
left: 260px;
height: 38px;
width: 38px;
background: url('//perso.crans.org/besson/_images/.top.svg');
background: url('../_images/.top.svg');
}

@media screen and (max-width: 875px) {
#scrollUpLeft {
right: 50px;
left: auto;
}
}


/* responsive for font-size. */

@media (max-width: 875px) {
body {
font-size: 105%;
/* Increase font size for responsive theme */
}
}

@media (max-width: 1480px) and (min-width: 876px) {
body {
font-size: 110%;
/* Increase font size for not-so-big screens */
}
}

@media (min-width: 1481px) {
body {
font-size: 115%;
/* Increase even more font size for big screens */
}
}


/* Social Icons in the sidebar (available: twitter, facebook, linkedin, google+, bitbucket, github) */

.social-icons {
display: inline-block;
margin: 0;
text-align: center;
}

.social-icons a {
background: none no-repeat scroll center top #444444;
border: 1px solid #F6F6F6;
border-radius: 50% 50% 50% 50%;
display: inline-block;
height: 35px;
width: 35px;
margin: 0;
text-indent: -9000px;
transition: all 0.2s ease 0s;
text-align: center;
border-bottom: none;
}

.social-icons li {
display: inline-block;
list-style-type: none;
border-bottom: none;
}
.social-icons li a {
border-bottom: none;
}

.social-icons a:hover {
background-color: #666666;
transition: all 0.2s ease 0s;
text-decoration: none;
}

.social-icons a.facebook {
background-image: url('../_images/.facebook.png');
background-image: url('//perso.crans.org/besson/_images/.facebook.png');
display: block;
margin-left: auto;
margin-right: auto;
background-size: 35px 35px;
}

.social-icons a.bitbucket {
background-image: url('../_images/.bitbucket.png');
background-image: url('//perso.crans.org/besson/_images/.bitbucket.png');
display: block;
margin-left: auto;
margin-right: auto;
background-size: 35px 35px;
}

.social-icons li a.github {
background-image: url('../_images/.github.png');
background-image: url('//perso.crans.org/besson/_images/.github.png');
display: block;
margin-left: auto;
margin-right: auto;
background-size: 35px 35px;
}

.social-icons li a.wikipedia {
background-image: url('../_images/.wikipedia.png');
background-image: url('//perso.crans.org/besson/_images/.wikipedia.png');
display: block;
margin-left: auto;
margin-right: auto;
background-size: 35px 35px;
}
Loading

0 comments on commit a722615

Please sign in to comment.