Skip to content

Commit

Permalink
Auto-update from Github Actions Workflow
Browse files Browse the repository at this point in the history
Deployed from commit e1c04c8 (refs/heads/master)

Deployed from commit 2c89f45 (refs/heads/master)

Deployed from commit a775d1a (refs/heads/master)

Deployed from commit ce4f64a (refs/heads/master)

Deployed from commit 27163da (refs/heads/master)

Deployed from commit 920f76c (refs/heads/master)
  • Loading branch information
github-actions committed Dec 14, 2023
1 parent 0846c1f commit 34237f7
Show file tree
Hide file tree
Showing 129 changed files with 3,281 additions and 1,308 deletions.
50 changes: 45 additions & 5 deletions master/_modules/atef/check.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<html class="writer-html5" lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>atef.check &mdash; atef documentation</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/graphviz.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/graphviz.css?v=eafc0fe6" />


<!--[if lt IE 9]>
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->
Expand Down Expand Up @@ -173,12 +175,14 @@ <h1>Source code for atef.check</h1><div class="highlight"><pre>
<a class="viewcode-back" href="../../generated/generated/atef.check.Value.html#atef.check.Value.compare">[docs]</a>
<span class="k">def</span> <span class="nf">compare</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">value</span><span class="p">:</span> <span class="n">PrimitiveType</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Compare the provided value with this one, using tolerance settings.&quot;&quot;&quot;</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">rtol</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span> <span class="ow">or</span> <span class="bp">self</span><span class="o">.</span><span class="n">atol</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">if</span> <span class="p">((</span><span class="bp">self</span><span class="o">.</span><span class="n">rtol</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span> <span class="ow">or</span> <span class="bp">self</span><span class="o">.</span><span class="n">atol</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">)</span>
<span class="ow">and</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="p">(</span><span class="nb">str</span><span class="p">,</span> <span class="nb">bool</span><span class="p">))):</span>
<span class="k">return</span> <span class="n">np</span><span class="o">.</span><span class="n">isclose</span><span class="p">(</span>
<span class="n">value</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">value</span><span class="p">,</span>
<span class="n">rtol</span><span class="o">=</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">rtol</span> <span class="ow">or</span> <span class="mf">0.0</span><span class="p">),</span>
<span class="n">atol</span><span class="o">=</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">atol</span> <span class="ow">or</span> <span class="mf">0.0</span><span class="p">)</span>
<span class="p">)</span>

<span class="k">return</span> <span class="n">value</span> <span class="o">==</span> <span class="bp">self</span><span class="o">.</span><span class="n">value</span></div>
</div>

Expand Down Expand Up @@ -850,6 +854,38 @@ <h1>Source code for atef.check</h1><div class="highlight"><pre>
<span class="k">for</span> <span class="n">comp</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">comparisons</span><span class="p">:</span>
<span class="k">await</span> <span class="n">comp</span><span class="o">.</span><span class="n">prepare</span><span class="p">(</span><span class="n">cache</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">is_prepared</span> <span class="o">=</span> <span class="kc">True</span></div>


<div class="viewcode-block" id="AnyComparison.children">
<a class="viewcode-back" href="../../generated/generated/atef.check.AnyComparison.html#atef.check.AnyComparison.children">[docs]</a>
<span class="k">def</span> <span class="nf">children</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">List</span><span class="p">[</span><span class="n">Comparison</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Return children of this group, as a tree view might expect&quot;&quot;&quot;</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">comparisons</span></div>


<div class="viewcode-block" id="AnyComparison.replace_comparison">
<a class="viewcode-back" href="../../generated/generated/atef.check.AnyComparison.html#atef.check.AnyComparison.replace_comparison">[docs]</a>
<span class="k">def</span> <span class="nf">replace_comparison</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span>
<span class="n">old_comp</span><span class="p">:</span> <span class="n">Comparison</span><span class="p">,</span>
<span class="n">new_comp</span><span class="p">:</span> <span class="n">Comparison</span><span class="p">,</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Replace ``old_comp`` with ``new_comp`` in this dataclass.</span>
<span class="sd"> A common method for all dataclasses that hold comparisons.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> old_comp : Comparison</span>
<span class="sd"> Comparsion to replace</span>
<span class="sd"> new_comp : Comparison</span>
<span class="sd"> Comparison to replace ``old_comp`` with</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">util</span><span class="o">.</span><span class="n">replace_in_list</span><span class="p">(</span>
<span class="n">old</span><span class="o">=</span><span class="n">old_comp</span><span class="p">,</span>
<span class="n">new</span><span class="o">=</span><span class="n">new_comp</span><span class="p">,</span>
<span class="n">item_list</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">comparisons</span><span class="p">,</span>
<span class="p">)</span></div>
</div>


Expand Down Expand Up @@ -1052,6 +1088,10 @@ <h1>Source code for atef.check</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">is_prepared</span> <span class="o">=</span> <span class="kc">True</span></div>
</div>



<span class="n">ALL_COMPARISONS</span> <span class="o">=</span> <span class="p">[</span><span class="n">Equals</span><span class="p">,</span> <span class="n">NotEquals</span><span class="p">,</span> <span class="n">Greater</span><span class="p">,</span> <span class="n">GreaterOrEqual</span><span class="p">,</span> <span class="n">Less</span><span class="p">,</span> <span class="n">LessOrEqual</span><span class="p">,</span>
<span class="n">Range</span><span class="p">,</span> <span class="n">ValueSet</span><span class="p">,</span> <span class="n">AnyValue</span><span class="p">,</span> <span class="n">AnyComparison</span><span class="p">]</span>
</pre></div>

</div>
Expand Down
Loading

0 comments on commit 34237f7

Please sign in to comment.