Skip to content

Commit

Permalink
Fix previous commit test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick committed Jan 15, 2024
1 parent 313c156 commit 74576e9
Show file tree
Hide file tree
Showing 12 changed files with 58 additions and 25 deletions.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/interval.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/logical.doctree
Binary file not shown.
14 changes: 9 additions & 5 deletions docs/_build/html/_sources/interval.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ An interval is an uncertain number for which only the endpoints are known, {math
This is interpreted as $x$ being between {math}`a` and {math}`b` but with no more information about the value of {math}`x`.
Intervals embody epistemic uncertainty within PBA.

Intervals can be created using:
Intervals can be created using either of the following:
```python
import pba
pba.Interval(0,1)
pba.I(0,1)
>>> import pba
>>> pba.Interval(0,1)
Interval [0,1]
>>> pba.I(2,3)
Interval [2,3]
```

## Arithmetic


## Class Documentation
```{eval-rst}
.. autoclass:: pba.interval.Interval
Expand Down
6 changes: 4 additions & 2 deletions docs/_build/html/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,13 @@ <h2>I</h2>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="pbox.html#pba.pbox.Pbox.imp">imp() (pba.pbox.Pbox method)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="interval.html#pba.interval.Interval.intersection">intersection() (pba.interval.Interval method)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="interval.html#pba.interval.Interval">Interval (class in pba.interval)</a>
</li>
<li><a href="logical.html#pba.logical.is_same_as">is_same_as() (in module pba.logical)</a>
</li>
</ul></td>
</tr></table>
Expand Down
2 changes: 2 additions & 0 deletions docs/_build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ <h1>PBA for Python<a class="headerlink" href="#pba-for-python" title="Link to th
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="interval.html">Intervals</a><ul>
<li class="toctree-l2"><a class="reference internal" href="interval.html#arithmetic">Arithmetic</a></li>
<li class="toctree-l2"><a class="reference internal" href="interval.html#class-documentation">Class Documentation</a></li>
</ul>
</li>
Expand All @@ -215,6 +216,7 @@ <h1>PBA for Python<a class="headerlink" href="#pba-for-python" title="Link to th
<li class="toctree-l1"><a class="reference internal" href="logical.html">Logical</a><ul>
<li class="toctree-l2"><a class="reference internal" href="logical.html#pba.logical.Logical"><code class="docutils literal notranslate"><span class="pre">Logical</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="logical.html#pba.logical.always"><code class="docutils literal notranslate"><span class="pre">always()</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="logical.html#pba.logical.is_same_as"><code class="docutils literal notranslate"><span class="pre">is_same_as()</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="logical.html#pba.logical.never"><code class="docutils literal notranslate"><span class="pre">never()</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="logical.html#pba.logical.sometimes"><code class="docutils literal notranslate"><span class="pre">sometimes()</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="logical.html#pba.logical.xtimes"><code class="docutils literal notranslate"><span class="pre">xtimes()</span></code></a></li>
Expand Down
14 changes: 10 additions & 4 deletions docs/_build/html/interval.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,17 @@ <h1>Intervals<a class="headerlink" href="#intervals" title="Link to this heading
<p>An interval is an uncertain number for which only the endpoints are known, <span class="math notranslate nohighlight">\(x=[a,b]\)</span>.
This is interpreted as $x$ being between <span class="math notranslate nohighlight">\(a\)</span> and <span class="math notranslate nohighlight">\(b\)</span> but with no more information about the value of <span class="math notranslate nohighlight">\(x\)</span>.
Intervals embody epistemic uncertainty within PBA.</p>
<p>Intervals can be created using:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">pba</span>
<span class="n">pba</span><span class="o">.</span><span class="n">Interval</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">1</span><span class="p">)</span>
<span class="n">pba</span><span class="o">.</span><span class="n">I</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">1</span><span class="p">)</span>
<p>Intervals can be created using either of the following:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">pba</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">pba</span><span class="o">.</span><span class="n">Interval</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">1</span><span class="p">)</span>
<span class="go">Interval [0,1]</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">pba</span><span class="o">.</span><span class="n">I</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span><span class="mi">3</span><span class="p">)</span>
<span class="go">Interval [2,3]</span>
</pre></div>
</div>
<section id="arithmetic">
<h2>Arithmetic<a class="headerlink" href="#arithmetic" title="Link to this heading">#</a></h2>
</section>
<section id="class-documentation">
<h2>Class Documentation<a class="headerlink" href="#class-documentation" title="Link to this heading">#</a></h2>
<dl class="py class">
Expand Down Expand Up @@ -425,6 +430,7 @@ <h3>Returns<a class="headerlink" href="#returns" title="Link to this heading">#<
<div class="toc-tree">
<ul>
<li><a class="reference internal" href="#">Intervals</a><ul>
<li><a class="reference internal" href="#arithmetic">Arithmetic</a></li>
<li><a class="reference internal" href="#class-documentation">Class Documentation</a><ul>
<li><a class="reference internal" href="#pba.interval.Interval"><code class="docutils literal notranslate"><span class="pre">Interval</span></code></a><ul>
<li><a class="reference internal" href="#pba.interval.Interval.equiv"><code class="docutils literal notranslate"><span class="pre">Interval.equiv()</span></code></a></li>
Expand Down
17 changes: 17 additions & 0 deletions docs/_build/html/logical.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,22 @@ <h2>Attributes<a class="headerlink" href="#attributes" title="Link to this headi
</div>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="pba.logical.is_same_as">
<span class="sig-prename descclassname"><span class="pre">pba.logical.</span></span><span class="sig-name descname"><span class="pre">is_same_as</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">a</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="pbox.html#pba.pbox.Pbox" title="pba.pbox.Pbox"><span class="pre">Pbox</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><a class="reference internal" href="interval.html#pba.interval.Interval" title="pba.interval.Interval"><span class="pre">Interval</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">b</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="pbox.html#pba.pbox.Pbox" title="pba.pbox.Pbox"><span class="pre">Pbox</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><a class="reference internal" href="interval.html#pba.interval.Interval" title="pba.interval.Interval"><span class="pre">Interval</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">deep</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pba.logical.is_same_as" title="Link to this definition">#</a></dt>
<dd><p>Check if two objects of type ‘Pbox’ or ‘Interval’ are equal.</p>
<p>Parameters:
- a (Union[‘Pbox’, ‘Interval’]): The first object to be compared.
- b (Union[‘Pbox’, ‘Interval’]): The second object to be compared.
- deep (bool, optional): If True, performs a deep comparison, considering object identity.</p>
<blockquote>
<div><p>If False, performs a shallow comparison based on object attributes.
Defaults to False.</p>
</div></blockquote>
<p>Returns:
- bool: True if the objects have identical parameters. For Intervals this means that left and right are the same for both a and b. For p-boxes</p>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="pba.logical.never">
<span class="sig-prename descclassname"><span class="pre">pba.logical.</span></span><span class="sig-name descname"><span class="pre">never</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">logical</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#pba.logical.Logical" title="pba.logical.Logical"><span class="pre">Logical</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">bool</span></span></span><a class="headerlink" href="#pba.logical.never" title="Link to this definition">#</a></dt>
Expand Down Expand Up @@ -397,6 +413,7 @@ <h2>Attributes<a class="headerlink" href="#attributes" title="Link to this headi
<li><a class="reference internal" href="#">Logical</a><ul>
<li><a class="reference internal" href="#pba.logical.Logical"><code class="docutils literal notranslate"><span class="pre">Logical</span></code></a></li>
<li><a class="reference internal" href="#pba.logical.always"><code class="docutils literal notranslate"><span class="pre">always()</span></code></a></li>
<li><a class="reference internal" href="#pba.logical.is_same_as"><code class="docutils literal notranslate"><span class="pre">is_same_as()</span></code></a></li>
<li><a class="reference internal" href="#pba.logical.never"><code class="docutils literal notranslate"><span class="pre">never()</span></code></a></li>
<li><a class="reference internal" href="#pba.logical.sometimes"><code class="docutils literal notranslate"><span class="pre">sometimes()</span></code></a></li>
<li><a class="reference internal" href="#pba.logical.xtimes"><code class="docutils literal notranslate"><span class="pre">xtimes()</span></code></a></li>
Expand Down
Binary file modified docs/_build/html/objects.inv
Binary file not shown.
Loading

0 comments on commit 74576e9

Please sign in to comment.