Skip to content

Commit 94aceb3

Browse files
authored
Merge pull request #124 from MatthijsdeJ/patch-1
Correct `ContingencyAnalysis` import name
2 parents 948f015 + a21b467 commit 94aceb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/security_analysis.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ It can be used as:
2727
.. code-block:: python
2828
2929
import grid2op
30-
from lightsim2grid import SecurityAnalysis
30+
from lightsim2grid import ContingencyAnalysis
3131
from lightsim2grid import LightSimBackend
3232
env_name = ...
3333
env = grid2op.make(env_name, backend=LightSimBackend())
3434
35-
security_analysis = SecurityAnalysis(env)
35+
security_analysis = ContingencyAnalysis(env)
3636
security_analysis.add_multiple_contingencies(...) # or security_analysis.add_single_contingency(...)
3737
res_p, res_a, res_v = security_analysis.get_flows()
3838
@@ -109,4 +109,4 @@ Detailed usage
109109

110110
* :ref:`genindex`
111111
* :ref:`modindex`
112-
* :ref:`search`
112+
* :ref:`search`

0 commit comments

Comments
 (0)