Skip to content

Commit ce3dadc

Browse files
committed
1. Ready to release the new version
1 parent 09a0fb7 commit ce3dadc

18 files changed

Lines changed: 122 additions & 40 deletions

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ The ESA team works hard to ensure ESA is well tested, and we strive for
7777
testing coverage data for ESA, using `coverage
7878
<https://pypi.org/project/coverage/>`__.
7979

80-
.. table:: ESA's testing coverage as of 2022-08-22 (Git commit: 4b28569)
80+
.. table:: ESA's testing coverage as of 2022-09-15 (Git commit: 09a0fb7)
8181
:widths: auto
8282
:align: left
8383

@@ -86,7 +86,7 @@ testing coverage data for ESA, using `coverage
8686
+=================+===================+=================+=================+====================+
8787
| esa/__init__.py | 2 | 0 | 2 | 100 |
8888
+-----------------+-------------------+-----------------+-----------------+--------------------+
89-
| esa/saw.py | 920 | 0 | 920 | 100 |
89+
| esa/saw.py | 1124 | 0 | 1124 | 100 |
9090
+-----------------+-------------------+-----------------+-----------------+--------------------+
9191

9292
License

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.8
1+
1.2.9

docs/doctrees/environment.pickle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:eaf6fc46551bf1b081a2f736c4f5e03bfbe577659bf6fec2bf77193995804e77
3-
size 75337
2+
oid sha256:4e29ac7436c46c295f280ef7e85d84bddc94cc4441de249647e8cf5f8d4749a2
3+
size 76583

docs/doctrees/esa.doctree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:d6da394dedf5a6a75c0b15139331128e705d13651e30a99df2fa2435d739220c
3-
size 408900
2+
oid sha256:5bb4928057a36445e0c3b517b5224764ac582d263eeb20a2d1b7d44c6f4e6f02
3+
size 422281

docs/doctrees/overview.doctree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:692841cd89f9063b19f2b12c247a55c65dc8de5c0e9d90827d00732cddfb16d9
3-
size 30599
2+
oid sha256:8b60c51408adf626a0a2f7c50a57334ec166d7f99057fb7fa17fd8b578108af2
3+
size 30603

docs/doctrees/welcome.doctree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:999a9e9e885543ff76280fd6035e25917ba6c5e97d9fd179269a0256bcefb9ff
3-
size 99108
2+
oid sha256:326f14e6606ad732909f25abcfd851cac003341a1f3ee7a792c39f12d1116707
3+
size 100937

docs/html/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: a53f9ecfe3e60fd7052d70b826a9f37e
3+
config: e0464f6a5f354efa64833053541a243d
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/html/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var DOCUMENTATION_OPTIONS = {
22
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
3-
VERSION: '1.2.8',
3+
VERSION: '1.2.9',
44
LANGUAGE: 'None',
55
COLLAPSE_INDEX: false,
66
BUILDER: 'html',

docs/html/esa.html

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,24 @@
13961396
<dd><p>Clean up for the PowerWorld COM object</p>
13971397
</dd></dl>
13981398

1399+
<dl class="py method">
1400+
<dt class="sig sig-object py" id="esa.saw.SAW.fast_n1_test">
1401+
<span class="sig-name descname"><span class="pre">fast_n1_test</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#esa.saw.SAW.fast_n1_test" title="Permalink to this definition"></a></dt>
1402+
<dd><p>A pure LODF-based fast N-1 contingency analysis implementation.</p>
1403+
<dl class="field-list simple">
1404+
<dt class="field-odd">Returns</dt>
1405+
<dd class="field-odd"><p>A boolean value to indicate whether the system is N-1 secure.</p>
1406+
</dd>
1407+
</dl>
1408+
</dd></dl>
1409+
1410+
<dl class="py method">
1411+
<dt class="sig sig-object py" id="esa.saw.SAW.fast_n2_islanding_detection">
1412+
<span class="sig-name descname"><span class="pre">fast_n2_islanding_detection</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#esa.saw.SAW.fast_n2_islanding_detection" title="Permalink to this definition"></a></dt>
1413+
<dd><p>Quickly identify the N-2 islanding CTGs using LODF</p>
1414+
<p>returns: A tuple with the number of islanding CTGs and the islanding matrix</p>
1415+
</dd></dl>
1416+
13991417
<dl class="py method">
14001418
<dt class="sig sig-object py" id="esa.saw.SAW.get_branch_admittance">
14011419
<span class="sig-name descname"><span class="pre">get_branch_admittance</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#esa.saw.SAW.get_branch_admittance" title="Permalink to this definition"></a></dt>
@@ -1533,10 +1551,10 @@
15331551
script CalculateShiftFactorsMultipleElement.</p>
15341552
<dl class="field-list simple">
15351553
<dt class="field-odd">Parameters</dt>
1536-
<dd class="field-odd"><p><strong>method</strong> – The linear method to be used for the calculation. The</p>
1554+
<dd class="field-odd"><p><strong>method</strong> – The linear method to be used for the calculation. The options are AC,</p>
15371555
</dd>
15381556
</dl>
1539-
<p>options are AC, DC or DCPS.
1557+
<p>DC or DCPS.
15401558
:returns: A dense float matrix in the numpy array format.</p>
15411559
</dd></dl>
15421560

@@ -1695,6 +1713,54 @@
16951713
</dl>
16961714
</dd></dl>
16971715

1716+
<dl class="py method">
1717+
<dt class="sig sig-object py" id="esa.saw.SAW.run_ecological_analysis">
1718+
<span class="sig-name descname"><span class="pre">run_ecological_analysis</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">target</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">'MW'</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">split_generator</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">bool</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#esa.saw.SAW.run_ecological_analysis" title="Permalink to this definition"></a></dt>
1719+
<dd><p>This method is leveraging applied ecological network analysis to quantify
1720+
the varity of robustness of the power system.</p>
1721+
<p>Reference:
1722+
[1] H. Huang, Z. Mao, A. Layton and K. R. Davis,
1723+
“An Ecological Robustness Oriented Optimal Power Flow for Power Systems’ Survivability,”
1724+
in IEEE Transactions on Power Systems, doi: 10.1109/TPWRS.2022.3168226.
1725+
[2] Panyam, V., Huang, H., Davis, K., &amp; Layton, A. (2019).
1726+
An ecosystem perspective for the design of sustainable power systems. Procedia Cirp, 80, 269-274.</p>
1727+
<dl class="field-list simple">
1728+
<dt class="field-odd">Parameters</dt>
1729+
<dd class="field-odd"><p><strong>target</strong> – the real, reactive, and apparent power over the system. The default value</p>
1730+
</dd>
1731+
</dl>
1732+
<p>is MW, which is the real power. Users can change to MVR, which is the reactive power; or
1733+
MVA, which is the apparent power.
1734+
:param split_generator: Choose to split or aggregate multiple generators associated with
1735+
the same bus. If true, the method will consider the generators’ robustness for each
1736+
generator.</p>
1737+
<dl class="field-list simple">
1738+
<dt class="field-odd">Results</dt>
1739+
<dd class="field-odd"><p>it is a list of ecological metrics, including the Ecological Robustness (Reco),</p>
1740+
</dd>
1741+
</dl>
1742+
<p>the Ascendancy (ASC), the Development Capacity (DC), the Cycled Throughflow (tstc), the Finn Cycling Index (CI)
1743+
and the Total System Overhead (TSO)</p>
1744+
</dd></dl>
1745+
1746+
<dl class="py method">
1747+
<dt class="sig sig-object py" id="esa.saw.SAW.run_robustness_analysis">
1748+
<span class="sig-name descname"><span class="pre">run_robustness_analysis</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#esa.saw.SAW.run_robustness_analysis" title="Permalink to this definition"></a></dt>
1749+
<dd><p>Compute the metric RCF to quantify the robustness of
1750+
power grids against cascading failures. The RCF metric takes the
1751+
operational states, the branch’s capacities and the topological
1752+
structure into account and gives an entropy-based value.
1753+
The formula is given from the following paper:
1754+
Koç, Yakup, Martijn Warnier, Robert E. Kooij, and Frances MT Brazier.
1755+
“An entropy-based metric to quantify the robustness of power grids
1756+
against cascading failures.” Safety science 59 (2013): 126-134.</p>
1757+
<dl class="field-list simple">
1758+
<dt class="field-odd">Returns</dt>
1759+
<dd class="field-odd"><p>The RCF value.</p>
1760+
</dd>
1761+
</dl>
1762+
</dd></dl>
1763+
16981764
<dl class="py method">
16991765
<dt class="sig sig-object py" id="esa.saw.SAW.set_simauto_property">
17001766
<span class="sig-name descname"><span class="pre">set_simauto_property</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">property_name</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">property_value</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Union</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span> </span><span class="pre">bool</span><span class="p"><span class="pre">]</span></span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#esa.saw.SAW.set_simauto_property" title="Permalink to this definition"></a></dt>

docs/html/genindex.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,14 @@ <h2 id="E">E</h2>
295295
<h2 id="F">F</h2>
296296
<table style="width: 100%" class="indextable genindextable"><tr>
297297
<td style="width: 33%; vertical-align: top;"><ul>
298-
<li><a href="esa.html#esa.saw.SAW.FIELD_LIST_COLUMNS">FIELD_LIST_COLUMNS (esa.saw.SAW attribute)</a>
298+
<li><a href="esa.html#esa.saw.SAW.fast_n1_test">fast_n1_test() (esa.saw.SAW method)</a>
299+
</li>
300+
<li><a href="esa.html#esa.saw.SAW.fast_n2_islanding_detection">fast_n2_islanding_detection() (esa.saw.SAW method)</a>
299301
</li>
300302
</ul></td>
301303
<td style="width: 33%; vertical-align: top;"><ul>
304+
<li><a href="esa.html#esa.saw.SAW.FIELD_LIST_COLUMNS">FIELD_LIST_COLUMNS (esa.saw.SAW attribute)</a>
305+
</li>
302306
<li><a href="esa.html#esa.saw.SAW.FIELD_LIST_COLUMNS_NEW">FIELD_LIST_COLUMNS_NEW (esa.saw.SAW attribute)</a>
303307
</li>
304308
<li><a href="esa.html#esa.saw.SAW.FIELD_LIST_COLUMNS_OLD">FIELD_LIST_COLUMNS_OLD (esa.saw.SAW attribute)</a>
@@ -447,10 +451,14 @@ <h2 id="R">R</h2>
447451
<table style="width: 100%" class="indextable genindextable"><tr>
448452
<td style="width: 33%; vertical-align: top;"><ul>
449453
<li><a href="esa.html#esa.saw.SAW.RequestBuildDate">RequestBuildDate (esa.saw.SAW property)</a>
454+
</li>
455+
<li><a href="esa.html#esa.saw.SAW.run_contingency_analysis">run_contingency_analysis() (esa.saw.SAW method)</a>
450456
</li>
451457
</ul></td>
452458
<td style="width: 33%; vertical-align: top;"><ul>
453-
<li><a href="esa.html#esa.saw.SAW.run_contingency_analysis">run_contingency_analysis() (esa.saw.SAW method)</a>
459+
<li><a href="esa.html#esa.saw.SAW.run_ecological_analysis">run_ecological_analysis() (esa.saw.SAW method)</a>
460+
</li>
461+
<li><a href="esa.html#esa.saw.SAW.run_robustness_analysis">run_robustness_analysis() (esa.saw.SAW method)</a>
454462
</li>
455463
<li><a href="esa.html#esa.saw.SAW.RunScriptCommand">RunScriptCommand() (esa.saw.SAW method)</a>
456464
</li>

0 commit comments

Comments
 (0)