Skip to content

Commit

Permalink
Deploy docs to develop by GitHub Actions triggered by 9568df2
Browse files Browse the repository at this point in the history
  • Loading branch information
abICS Developers committed Sep 12, 2023
1 parent 11f6cca commit c05d665
Show file tree
Hide file tree
Showing 131 changed files with 1,336 additions and 1,161 deletions.
25 changes: 17 additions & 8 deletions docs/develop/api/_modules/abics/exception.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../../_static/jquery.js"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
<script src="../../_static/doctools.js"></script>
<script src="../../_static/sphinx_highlight.js"></script>
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand Down Expand Up @@ -85,12 +85,17 @@ <h1>Source code for abics.exception</h1><div class="highlight"><pre>
<span class="c1"># You should have received a copy of the GNU General Public License</span>
<span class="c1"># along with this program. If not, see http://www.gnu.org/licenses/.</span>

<div class="viewcode-block" id="Error"><a class="viewcode-back" href="../../abics.exception.html#abics.exception.Error">[docs]</a><span class="k">class</span> <span class="nc">Error</span><span class="p">(</span><span class="ne">Exception</span><span class="p">):</span>
<div class="viewcode-block" id="Error">
<a class="viewcode-back" href="../../abics.exception.html#abics.exception.Error">[docs]</a>
<span class="k">class</span> <span class="nc">Error</span><span class="p">(</span><span class="ne">Exception</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Base class for exceptions in abICS&quot;&quot;&quot;</span>
<span class="k">pass</span></div>


<div class="viewcode-block" id="InputError"><a class="viewcode-back" href="../../abics.exception.html#abics.exception.InputError">[docs]</a><span class="k">class</span> <span class="nc">InputError</span><span class="p">(</span><span class="n">Error</span><span class="p">):</span>

<div class="viewcode-block" id="InputError">
<a class="viewcode-back" href="../../abics.exception.html#abics.exception.InputError">[docs]</a>
<span class="k">class</span> <span class="nc">InputError</span><span class="p">(</span><span class="n">Error</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Exception raised for errors in the input</span>

<span class="sd"> Attributes</span>
Expand All @@ -102,7 +107,10 @@ <h1>Source code for abics.exception</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">message</span> <span class="o">=</span> <span class="n">message</span></div>


<div class="viewcode-block" id="MatrixParseError"><a class="viewcode-back" href="../../abics.exception.html#abics.exception.MatrixParseError">[docs]</a><span class="k">class</span> <span class="nc">MatrixParseError</span><span class="p">(</span><span class="n">Error</span><span class="p">):</span>

<div class="viewcode-block" id="MatrixParseError">
<a class="viewcode-back" href="../../abics.exception.html#abics.exception.MatrixParseError">[docs]</a>
<span class="k">class</span> <span class="nc">MatrixParseError</span><span class="p">(</span><span class="n">Error</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Exception raised for matrix parse errors</span>

<span class="sd"> Attributes</span>
Expand All @@ -112,6 +120,7 @@ <h1>Source code for abics.exception</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">message</span><span class="p">:</span> <span class="nb">str</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">message</span> <span class="o">=</span> <span class="n">message</span></div>

</pre></div>

</div>
Expand Down
15 changes: 9 additions & 6 deletions docs/develop/api/_modules/abics/loggers/loggers.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<script src="../../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../../../_static/jquery.js"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script>
<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script>
<script src="../../../_static/doctools.js"></script>
<script src="../../../_static/sphinx_highlight.js"></script>
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
Expand Down Expand Up @@ -212,7 +212,9 @@ <h1>Source code for abics.loggers.loggers</h1><div class="highlight"><pre>
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span><span class="s2">&quot;Unable to do for MPI file handler!&quot;</span><span class="p">)</span>


<div class="viewcode-block" id="set_log_handles"><a class="viewcode-back" href="../../../abics.loggers.loggers.html#abics.loggers.set_log_handles">[docs]</a><span class="k">def</span> <span class="nf">set_log_handles</span><span class="p">(</span>
<div class="viewcode-block" id="set_log_handles">
<a class="viewcode-back" href="../../../abics.loggers.loggers.html#abics.loggers.set_log_handles">[docs]</a>
<span class="k">def</span> <span class="nf">set_log_handles</span><span class="p">(</span>
<span class="n">app_name</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span>
<span class="n">level</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">INFO</span><span class="p">,</span>
<span class="n">console</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;default&quot;</span><span class="p">,</span>
Expand Down Expand Up @@ -466,6 +468,7 @@ <h1>Source code for abics.loggers.loggers</h1><div class="highlight"><pre>
<span class="n">fh</span><span class="o">.</span><span class="n">addFilter</span><span class="p">(</span><span class="n">_AppFilter</span><span class="p">(</span><span class="n">app_name</span><span class="p">))</span>
<span class="n">root_log</span><span class="o">.</span><span class="n">addHandler</span><span class="p">(</span><span class="n">fh</span><span class="p">)</span></div>


<span class="c1"># **********************************************************************************</span>
</pre></div>

Expand Down
32 changes: 22 additions & 10 deletions docs/develop/api/_modules/abics/model.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../../_static/jquery.js"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
<script src="../../_static/doctools.js"></script>
<script src="../../_static/sphinx_highlight.js"></script>
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand Down Expand Up @@ -98,7 +98,9 @@ <h1>Source code for abics.model</h1><div class="highlight"><pre>
<span class="sd">&quot;&quot;&quot;Defines base classes for Monte Carlo simulations&quot;&quot;&quot;</span>


<div class="viewcode-block" id="Model"><a class="viewcode-back" href="../../abics.model.html#abics.model.Model">[docs]</a><span class="k">class</span> <span class="nc">Model</span><span class="p">(</span><span class="n">metaclass</span><span class="o">=</span><span class="n">ABCMeta</span><span class="p">):</span>
<div class="viewcode-block" id="Model">
<a class="viewcode-back" href="../../abics.model.html#abics.model.Model">[docs]</a>
<span class="k">class</span> <span class="nc">Model</span><span class="p">(</span><span class="n">metaclass</span><span class="o">=</span><span class="n">ABCMeta</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;This class defines a model whose energy equals 0 no matter the configuration, and the configuration</span>
<span class="sd"> never changes.</span>
<span class="sd"> This is a base template for building useful models.&quot;&quot;&quot;</span>
Expand All @@ -107,7 +109,9 @@ <h1>Source code for abics.model</h1><div class="highlight"><pre>

<span class="c1"># def __init__(self):</span>

<div class="viewcode-block" id="Model.energy"><a class="viewcode-back" href="../../abics.model.html#abics.model.Model.energy">[docs]</a> <span class="nd">@abstractmethod</span>
<div class="viewcode-block" id="Model.energy">
<a class="viewcode-back" href="../../abics.model.html#abics.model.Model.energy">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">energy</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">config</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">float</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Calculate energy of configuration: input: config</span>
Expand All @@ -124,7 +128,10 @@ <h1>Source code for abics.model</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="o">...</span></div>

<div class="viewcode-block" id="Model.trialstep"><a class="viewcode-back" href="../../abics.model.html#abics.model.Model.trialstep">[docs]</a> <span class="nd">@abstractmethod</span>

<div class="viewcode-block" id="Model.trialstep">
<a class="viewcode-back" href="../../abics.model.html#abics.model.Model.trialstep">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">trialstep</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">config</span><span class="p">,</span> <span class="n">energy</span><span class="p">:</span> <span class="nb">float</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">tuple</span><span class="p">[</span><span class="n">Any</span><span class="p">,</span> <span class="nb">float</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Define a trial step on config</span>

Expand Down Expand Up @@ -154,7 +161,10 @@ <h1>Source code for abics.model</h1><div class="highlight"><pre>
<span class="c1"># which can sometimes be costly</span>
<span class="o">...</span></div>

<div class="viewcode-block" id="Model.newconfig"><a class="viewcode-back" href="../../abics.model.html#abics.model.Model.newconfig">[docs]</a> <span class="nd">@abstractmethod</span>

<div class="viewcode-block" id="Model.newconfig">
<a class="viewcode-back" href="../../abics.model.html#abics.model.Model.newconfig">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">newconfig</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">config</span><span class="p">,</span> <span class="n">dconfig</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Update config by using the trial step, dconfig</span>
Expand All @@ -172,7 +182,9 @@ <h1>Source code for abics.model</h1><div class="highlight"><pre>
<span class="sd"> config: config object</span>
<span class="sd"> updated configuration</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="n">config</span></div></div>
<span class="k">return</span> <span class="n">config</span></div>
</div>


<span class="c1"># For backward compatibility</span>
<span class="k">if</span> <span class="n">__version__</span> <span class="o">&lt;</span> <span class="s2">&quot;3&quot;</span><span class="p">:</span>
Expand Down
Loading

0 comments on commit c05d665

Please sign in to comment.