Skip to content

Commit

Permalink
Merge pull request #13 from BDonnot/plot_grid_plotly
Browse files Browse the repository at this point in the history
Hazards, maintenance, plot utilities
  • Loading branch information
BDonnot committed Dec 4, 2019
2 parents 0bcc334 + fd7dd6a commit de5a9a6
Show file tree
Hide file tree
Showing 35 changed files with 3,864 additions and 282 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,4 @@ documentation
grid2op/data/*/*.csv
**token.json
getting_started/study_agent_getting_started/
**Untitled.ipynb
11 changes: 11 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
Change Log
=============

[0.4.0] - 2019-12-04
--------------------
- [ADDED] Basic tools for plotting with the `PlotPlotly` module
- [UPDATED] handling of the `AmbiguousAction` and `IllegalAction` exceptions (and appropriated tests)
- [ADDED] support of maintenance operation as well as hazards in the Observation (and appropriated tests)
- [ADDED] support for maintenance operation in the Environment (read from the chronics)
- [UPDATED] various documentation, in particular the class Observation
- [UPDATED] information retrievable `Observation.state_of`
- [ADDED] example of chronics with hazards and maintenance

[0.3.6] - 2019-12-01
--------------------
- [UPDATED] Readme with docker
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
author = 'Benjamin Donnot'

# The full version, including alpha/beta/rc tags
release = '0.3.6'
version = '0.3'
release = '0.4.0'
version = '0.4'


# -- General configuration ---------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Main module content
quickstart
grid2op
makeenv
pltplotly

Technical Documentation
----------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ library is available as an example.

Any other tools that is able to perform power flow computation can be used as a "backend" to
play the game or to accelerate the training. Instructions and method to implement
a new backend are available in the :class:`Grid2Op.Backend` documentation.
a new backend are available in the :class:`Grid2Op.Backend.Backend` documentation.

TO be continued (package still under development)
8 changes: 8 additions & 0 deletions docs/pltplotly.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Basic plotting utilities
===================================

.. automodule:: grid2op.PlotPlotly
:members:
:special-members:

.. include:: final.rst
2,231 changes: 2,080 additions & 151 deletions getting_started/4_StudyYourAgent.ipynb

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions grid2op/Backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,8 @@ def get_topo_vect(self):
`*_pos_topo_vect` (*eg.* :attr:`Backend.load_pos_topo_vect`) vectors. For each elements it gives its position
in this vector.
TODO make an example here on how to use this!
Returns
--------
res: `numpy.ndarray`
Expand Down

0 comments on commit de5a9a6

Please sign in to comment.