Skip to content

Commit

Permalink
Deploying to gh-pages from @ fury-gl/fury@14851c6 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
skoudoro committed Apr 23, 2024
1 parent f67da4a commit 2ae82f3
Show file tree
Hide file tree
Showing 416 changed files with 845 additions and 822 deletions.
2 changes: 1 addition & 1 deletion dev/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 2f74803892ef13ea472c20ff0801b46a
config: d555acfc62b7bbb17c4e4e99f82a529f
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified dev/.doctrees/environment.pickle
Binary file not shown.
Binary file modified dev/.doctrees/reference/fury.deprecator.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions dev/_modules/fury.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>fury &#8212; FURY 0.11.0.dev26+g789a448f documentation</title>
<title>fury &#8212; FURY 0.11.0.dev27+g14851c6a documentation</title>



Expand Down Expand Up @@ -43,7 +43,7 @@
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=8d27b9dea8ad943066ae" />
<script src="../_static/vendor/fontawesome/6.5.1/js/all.min.js?digest=8d27b9dea8ad943066ae"></script>

<script src="../_static/documentation_options.js?v=8715b8c0"></script>
<script src="../_static/documentation_options.js?v=ffcf25f7"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/clipboard.min.js?v=a7894cd8"></script>
Expand Down
4 changes: 2 additions & 2 deletions dev/_modules/fury/actor.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>fury.actor &#8212; FURY 0.11.0.dev26+g789a448f documentation</title>
<title>fury.actor &#8212; FURY 0.11.0.dev27+g14851c6a documentation</title>



Expand Down Expand Up @@ -43,7 +43,7 @@
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=8d27b9dea8ad943066ae" />
<script src="../../_static/vendor/fontawesome/6.5.1/js/all.min.js?digest=8d27b9dea8ad943066ae"></script>

<script src="../../_static/documentation_options.js?v=8715b8c0"></script>
<script src="../../_static/documentation_options.js?v=ffcf25f7"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
Expand Down
19 changes: 12 additions & 7 deletions dev/_modules/fury/actors/odf_slicer.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>fury.actors.odf_slicer &#8212; FURY 0.11.0.dev26+g789a448f documentation</title>
<title>fury.actors.odf_slicer &#8212; FURY 0.11.0.dev27+g14851c6a documentation</title>



Expand Down Expand Up @@ -43,7 +43,7 @@
<link rel="preload" as="script" href="../../../_static/scripts/pydata-sphinx-theme.js?digest=8d27b9dea8ad943066ae" />
<script src="../../../_static/vendor/fontawesome/6.5.1/js/all.min.js?digest=8d27b9dea8ad943066ae"></script>

<script src="../../../_static/documentation_options.js?v=8715b8c0"></script>
<script src="../../../_static/documentation_options.js?v=ffcf25f7"></script>
<script src="../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>
Expand Down Expand Up @@ -503,7 +503,7 @@ <h1>Source code for fury.actors.odf_slicer</h1><div class="highlight"><pre>
<span class="sd"> (inclusive).</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">mask</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">zeros</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">grid_shape</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">bool</span><span class="p">)</span>
<span class="n">mask</span><span class="p">[</span><span class="n">x1</span> <span class="p">:</span> <span class="n">x2</span> <span class="o">+</span> <span class="mi">1</span><span class="p">,</span> <span class="n">y1</span> <span class="p">:</span> <span class="n">y2</span> <span class="o">+</span> <span class="mi">1</span><span class="p">,</span> <span class="n">z1</span> <span class="p">:</span> <span class="n">z2</span> <span class="o">+</span> <span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="kc">True</span>
<span class="n">mask</span><span class="p">[</span><span class="n">x1</span><span class="p">:</span> <span class="n">x2</span> <span class="o">+</span> <span class="mi">1</span><span class="p">,</span> <span class="n">y1</span><span class="p">:</span> <span class="n">y2</span> <span class="o">+</span> <span class="mi">1</span><span class="p">,</span> <span class="n">z1</span><span class="p">:</span> <span class="n">z2</span> <span class="o">+</span> <span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="kc">True</span>
<span class="bp">self</span><span class="o">.</span><span class="n">mask</span> <span class="o">=</span> <span class="n">mask</span>

<span class="bp">self</span><span class="o">.</span><span class="n">_update_mapper</span><span class="p">()</span></div>
Expand Down Expand Up @@ -567,7 +567,10 @@ <h1>Source code for fury.actors.odf_slicer</h1><div class="highlight"><pre>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Dynamically change the sphere used for SH to SF projection.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">B</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;Can&#39;t update sphere when using &quot;</span> <span class="s1">&#39;SF coefficients.&#39;</span><span class="p">)</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span>
<span class="s2">&quot;Can&#39;t update sphere when using &quot;</span>
<span class="s1">&#39;SF coefficients.&#39;</span>
<span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">vertices</span> <span class="o">=</span> <span class="n">vertices</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">affine</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">w_verts</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">vertices</span><span class="o">.</span><span class="n">dot</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">affine</span><span class="p">[:</span><span class="mi">3</span><span class="p">,</span> <span class="p">:</span><span class="mi">3</span><span class="p">])</span>
Expand Down Expand Up @@ -637,8 +640,9 @@ <h1>Source code for fury.actors.odf_slicer</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">radial_scale</span><span class="p">:</span>
<span class="c1"># apply SF amplitudes to all sphere</span>
<span class="c1"># directions and offset each voxel</span>
<span class="k">return</span> <span class="n">np</span><span class="o">.</span><span class="n">tile</span><span class="p">(</span><span class="n">sph_dirs</span><span class="p">,</span> <span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">offsets</span><span class="p">),</span> <span class="mi">1</span><span class="p">))</span> <span class="o">*</span> <span class="n">sf</span><span class="o">.</span><span class="n">reshape</span><span class="p">(</span><span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span> <span class="o">+</span> <span class="n">np</span><span class="o">.</span><span class="n">repeat</span><span class="p">(</span>
<span class="n">offsets</span><span class="p">,</span> <span class="nb">len</span><span class="p">(</span><span class="n">sph_dirs</span><span class="p">),</span> <span class="n">axis</span><span class="o">=</span><span class="mi">0</span>
<span class="k">return</span> <span class="p">(</span>
<span class="n">np</span><span class="o">.</span><span class="n">tile</span><span class="p">(</span><span class="n">sph_dirs</span><span class="p">,</span> <span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">offsets</span><span class="p">),</span> <span class="mi">1</span><span class="p">))</span> <span class="o">*</span> <span class="n">sf</span><span class="o">.</span><span class="n">reshape</span><span class="p">(</span><span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
<span class="o">+</span> <span class="n">np</span><span class="o">.</span><span class="n">repeat</span><span class="p">(</span><span class="n">offsets</span><span class="p">,</span> <span class="nb">len</span><span class="p">(</span><span class="n">sph_dirs</span><span class="p">),</span> <span class="n">axis</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
<span class="p">)</span>
<span class="c1"># return scaled spheres offsetted by `offsets`</span>
<span class="k">return</span> <span class="n">np</span><span class="o">.</span><span class="n">tile</span><span class="p">(</span><span class="n">sph_dirs</span><span class="p">,</span> <span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">offsets</span><span class="p">),</span> <span class="mi">1</span><span class="p">))</span> <span class="o">*</span> <span class="bp">self</span><span class="o">.</span><span class="n">scale</span> <span class="o">+</span> <span class="n">np</span><span class="o">.</span><span class="n">repeat</span><span class="p">(</span>
Expand Down Expand Up @@ -666,7 +670,8 @@ <h1>Source code for fury.actors.odf_slicer</h1><div class="highlight"><pre>
<span class="n">range_sf</span> <span class="o">=</span> <span class="n">sf</span><span class="o">.</span><span class="n">max</span><span class="p">(</span><span class="n">axis</span><span class="o">=-</span><span class="mi">1</span><span class="p">)</span> <span class="o">-</span> <span class="n">sf</span><span class="o">.</span><span class="n">min</span><span class="p">(</span><span class="n">axis</span><span class="o">=-</span><span class="mi">1</span><span class="p">)</span>
<span class="n">rescaled</span> <span class="o">=</span> <span class="n">sf</span> <span class="o">-</span> <span class="n">sf</span><span class="o">.</span><span class="n">min</span><span class="p">(</span><span class="n">axis</span><span class="o">=-</span><span class="mi">1</span><span class="p">,</span> <span class="n">keepdims</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">rescaled</span><span class="p">[</span><span class="n">range_sf</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">]</span> <span class="o">/=</span> <span class="n">range_sf</span><span class="p">[</span><span class="n">range_sf</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">][</span><span class="o">...</span><span class="p">,</span> <span class="kc">None</span><span class="p">]</span>
<span class="n">all_colors</span> <span class="o">=</span> <span class="n">create_colormap</span><span class="p">(</span><span class="n">rescaled</span><span class="o">.</span><span class="n">ravel</span><span class="p">(),</span> <span class="bp">self</span><span class="o">.</span><span class="n">colormap</span><span class="p">)</span> <span class="o">*</span> <span class="mi">255</span>
<span class="n">all_colors</span> <span class="o">=</span> <span class="n">create_colormap</span><span class="p">(</span><span class="n">rescaled</span><span class="o">.</span><span class="n">ravel</span><span class="p">(),</span> <span class="bp">self</span><span class="o">.</span><span class="n">colormap</span><span class="p">)</span> \
<span class="o">*</span> <span class="mi">255</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">all_colors</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">tile</span><span class="p">(</span>
<span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">colormap</span><span class="p">)</span><span class="o">.</span><span class="n">reshape</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">3</span><span class="p">),</span>
Expand Down
Loading

0 comments on commit 2ae82f3

Please sign in to comment.