Skip to content

Commit

Permalink
deploy: fe5cfc1
Browse files Browse the repository at this point in the history
  • Loading branch information
adigitoleo committed Mar 25, 2024
1 parent 8d8daf3 commit 2dd30d6
Show file tree
Hide file tree
Showing 12 changed files with 5,043 additions and 3,910 deletions.
998 changes: 672 additions & 326 deletions pydrex/cli.html

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions pydrex/core.html
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ <h5>Inherited Members</h5>
<dd id="MineralPhase.to_bytes" class="function">to_bytes</dd>
<dd id="MineralPhase.from_bytes" class="function">from_bytes</dd>
<dd id="MineralPhase.as_integer_ratio" class="function">as_integer_ratio</dd>
<dd id="MineralPhase.is_integer" class="function">is_integer</dd>
<dd id="MineralPhase.real" class="variable">real</dd>
<dd id="MineralPhase.imag" class="variable">imag</dd>
<dd id="MineralPhase.numerator" class="variable">numerator</dd>
Expand Down Expand Up @@ -777,6 +778,7 @@ <h5>Inherited Members</h5>
<dd id="DeformationRegime.to_bytes" class="function">to_bytes</dd>
<dd id="DeformationRegime.from_bytes" class="function">from_bytes</dd>
<dd id="DeformationRegime.as_integer_ratio" class="function">as_integer_ratio</dd>
<dd id="DeformationRegime.is_integer" class="function">is_integer</dd>
<dd id="DeformationRegime.real" class="variable">real</dd>
<dd id="DeformationRegime.imag" class="variable">imag</dd>
<dd id="DeformationRegime.numerator" class="variable">numerator</dd>
Expand Down Expand Up @@ -919,6 +921,7 @@ <h5>Inherited Members</h5>
<dd id="MineralFabric.to_bytes" class="function">to_bytes</dd>
<dd id="MineralFabric.from_bytes" class="function">from_bytes</dd>
<dd id="MineralFabric.as_integer_ratio" class="function">as_integer_ratio</dd>
<dd id="MineralFabric.is_integer" class="function">is_integer</dd>
<dd id="MineralFabric.real" class="variable">real</dd>
<dd id="MineralFabric.imag" class="variable">imag</dd>
<dd id="MineralFabric.numerator" class="variable">numerator</dd>
Expand Down
328 changes: 260 additions & 68 deletions pydrex/exceptions.html

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions pydrex/geometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ <h2>API Documentation</h2>
<li>
<a class="function" href="#shirley_concentric_squaredisk">shirley_concentric_squaredisk</a>
</li>
<li>
<a class="function" href="#to_indices">to_indices</a>
</li>
</ul>


Expand Down Expand Up @@ -429,6 +432,26 @@ <h1 class="modulename">
</span><span id="L-307"><a href="#L-307"><span class="linenos">307</span></a> <span class="p">],</span>
</span><span id="L-308"><a href="#L-308"><span class="linenos">308</span></a> <span class="p">)</span><span class="o">.</span><span class="n">transpose</span><span class="p">()</span>
</span><span id="L-309"><a href="#L-309"><span class="linenos">309</span></a> <span class="k">return</span> <span class="n">x_disk</span><span class="p">,</span> <span class="n">y_disk</span>
</span><span id="L-310"><a href="#L-310"><span class="linenos">310</span></a>
</span><span id="L-311"><a href="#L-311"><span class="linenos">311</span></a>
</span><span id="L-312"><a href="#L-312"><span class="linenos">312</span></a><span class="k">def</span> <span class="nf">to_indices</span><span class="p">(</span><span class="n">horizontal</span><span class="p">,</span> <span class="n">vertical</span><span class="p">):</span>
</span><span id="L-313"><a href="#L-313"><span class="linenos">313</span></a> <span class="n">_geometry</span> <span class="o">=</span> <span class="p">(</span><span class="n">horizontal</span><span class="o">.</span><span class="n">upper</span><span class="p">(),</span> <span class="n">vertical</span><span class="o">.</span><span class="n">upper</span><span class="p">())</span>
</span><span id="L-314"><a href="#L-314"><span class="linenos">314</span></a> <span class="k">match</span> <span class="n">_geometry</span><span class="p">:</span>
</span><span id="L-315"><a href="#L-315"><span class="linenos">315</span></a> <span class="k">case</span> <span class="p">(</span><span class="s2">&quot;X&quot;</span><span class="p">,</span> <span class="s2">&quot;Y&quot;</span><span class="p">):</span>
</span><span id="L-316"><a href="#L-316"><span class="linenos">316</span></a> <span class="n">indices</span> <span class="o">=</span> <span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
</span><span id="L-317"><a href="#L-317"><span class="linenos">317</span></a> <span class="k">case</span> <span class="p">(</span><span class="s2">&quot;X&quot;</span><span class="p">,</span> <span class="s2">&quot;Z&quot;</span><span class="p">):</span>
</span><span id="L-318"><a href="#L-318"><span class="linenos">318</span></a> <span class="n">indices</span> <span class="o">=</span> <span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span>
</span><span id="L-319"><a href="#L-319"><span class="linenos">319</span></a> <span class="k">case</span> <span class="p">(</span><span class="s2">&quot;Y&quot;</span><span class="p">,</span> <span class="s2">&quot;X&quot;</span><span class="p">):</span>
</span><span id="L-320"><a href="#L-320"><span class="linenos">320</span></a> <span class="n">indices</span> <span class="o">=</span> <span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span>
</span><span id="L-321"><a href="#L-321"><span class="linenos">321</span></a> <span class="k">case</span> <span class="p">(</span><span class="s2">&quot;Y&quot;</span><span class="p">,</span> <span class="s2">&quot;Z&quot;</span><span class="p">):</span>
</span><span id="L-322"><a href="#L-322"><span class="linenos">322</span></a> <span class="n">indices</span> <span class="o">=</span> <span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span>
</span><span id="L-323"><a href="#L-323"><span class="linenos">323</span></a> <span class="k">case</span> <span class="p">(</span><span class="s2">&quot;Z&quot;</span><span class="p">,</span> <span class="s2">&quot;X&quot;</span><span class="p">):</span>
</span><span id="L-324"><a href="#L-324"><span class="linenos">324</span></a> <span class="n">indices</span> <span class="o">=</span> <span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span>
</span><span id="L-325"><a href="#L-325"><span class="linenos">325</span></a> <span class="k">case</span> <span class="p">(</span><span class="s2">&quot;Z&quot;</span><span class="p">,</span> <span class="s2">&quot;Y&quot;</span><span class="p">):</span>
</span><span id="L-326"><a href="#L-326"><span class="linenos">326</span></a> <span class="n">indices</span> <span class="o">=</span> <span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
</span><span id="L-327"><a href="#L-327"><span class="linenos">327</span></a> <span class="k">case</span><span class="w"> </span><span class="k">_</span><span class="p">:</span>
</span><span id="L-328"><a href="#L-328"><span class="linenos">328</span></a> <span class="k">raise</span> <span class="ne">ValueError</span>
</span><span id="L-329"><a href="#L-329"><span class="linenos">329</span></a> <span class="k">return</span> <span class="n">indices</span>
</span></pre></div>


Expand Down Expand Up @@ -1064,6 +1087,41 @@ <h5>Inherited Members</h5>
</div>


</section>
<section id="to_indices">
<input id="to_indices-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
<div class="attr function">

<span class="def">def</span>
<span class="name">to_indices</span><span class="signature pdoc-code condensed">(<span class="param"><span class="n">horizontal</span>, </span><span class="param"><span class="n">vertical</span></span><span class="return-annotation">):</span></span>

<label class="view-source-button" for="to_indices-view-source"><span>View Source</span></label>

</div>
<a class="headerlink" href="#to_indices"></a>
<div class="pdoc-code codehilite"><pre><span></span><span id="to_indices-313"><a href="#to_indices-313"><span class="linenos">313</span></a><span class="k">def</span> <span class="nf">to_indices</span><span class="p">(</span><span class="n">horizontal</span><span class="p">,</span> <span class="n">vertical</span><span class="p">):</span>
</span><span id="to_indices-314"><a href="#to_indices-314"><span class="linenos">314</span></a> <span class="n">_geometry</span> <span class="o">=</span> <span class="p">(</span><span class="n">horizontal</span><span class="o">.</span><span class="n">upper</span><span class="p">(),</span> <span class="n">vertical</span><span class="o">.</span><span class="n">upper</span><span class="p">())</span>
</span><span id="to_indices-315"><a href="#to_indices-315"><span class="linenos">315</span></a> <span class="k">match</span> <span class="n">_geometry</span><span class="p">:</span>
</span><span id="to_indices-316"><a href="#to_indices-316"><span class="linenos">316</span></a> <span class="k">case</span> <span class="p">(</span><span class="s2">&quot;X&quot;</span><span class="p">,</span> <span class="s2">&quot;Y&quot;</span><span class="p">):</span>
</span><span id="to_indices-317"><a href="#to_indices-317"><span class="linenos">317</span></a> <span class="n">indices</span> <span class="o">=</span> <span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
</span><span id="to_indices-318"><a href="#to_indices-318"><span class="linenos">318</span></a> <span class="k">case</span> <span class="p">(</span><span class="s2">&quot;X&quot;</span><span class="p">,</span> <span class="s2">&quot;Z&quot;</span><span class="p">):</span>
</span><span id="to_indices-319"><a href="#to_indices-319"><span class="linenos">319</span></a> <span class="n">indices</span> <span class="o">=</span> <span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span>
</span><span id="to_indices-320"><a href="#to_indices-320"><span class="linenos">320</span></a> <span class="k">case</span> <span class="p">(</span><span class="s2">&quot;Y&quot;</span><span class="p">,</span> <span class="s2">&quot;X&quot;</span><span class="p">):</span>
</span><span id="to_indices-321"><a href="#to_indices-321"><span class="linenos">321</span></a> <span class="n">indices</span> <span class="o">=</span> <span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span>
</span><span id="to_indices-322"><a href="#to_indices-322"><span class="linenos">322</span></a> <span class="k">case</span> <span class="p">(</span><span class="s2">&quot;Y&quot;</span><span class="p">,</span> <span class="s2">&quot;Z&quot;</span><span class="p">):</span>
</span><span id="to_indices-323"><a href="#to_indices-323"><span class="linenos">323</span></a> <span class="n">indices</span> <span class="o">=</span> <span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span>
</span><span id="to_indices-324"><a href="#to_indices-324"><span class="linenos">324</span></a> <span class="k">case</span> <span class="p">(</span><span class="s2">&quot;Z&quot;</span><span class="p">,</span> <span class="s2">&quot;X&quot;</span><span class="p">):</span>
</span><span id="to_indices-325"><a href="#to_indices-325"><span class="linenos">325</span></a> <span class="n">indices</span> <span class="o">=</span> <span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span>
</span><span id="to_indices-326"><a href="#to_indices-326"><span class="linenos">326</span></a> <span class="k">case</span> <span class="p">(</span><span class="s2">&quot;Z&quot;</span><span class="p">,</span> <span class="s2">&quot;Y&quot;</span><span class="p">):</span>
</span><span id="to_indices-327"><a href="#to_indices-327"><span class="linenos">327</span></a> <span class="n">indices</span> <span class="o">=</span> <span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
</span><span id="to_indices-328"><a href="#to_indices-328"><span class="linenos">328</span></a> <span class="k">case</span><span class="w"> </span><span class="k">_</span><span class="p">:</span>
</span><span id="to_indices-329"><a href="#to_indices-329"><span class="linenos">329</span></a> <span class="k">raise</span> <span class="ne">ValueError</span>
</span><span id="to_indices-330"><a href="#to_indices-330"><span class="linenos">330</span></a> <span class="k">return</span> <span class="n">indices</span>
</span></pre></div>




</section>
</main>
<script>
Expand Down
Loading

0 comments on commit 2dd30d6

Please sign in to comment.