Skip to content

Commit

Permalink
deploy: 30139d5
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Dec 12, 2023
1 parent 2e570ab commit 253070a
Show file tree
Hide file tree
Showing 34 changed files with 71 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .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: 321f278ae6ea2aebd3dc5e63f6a29f5e
config: 810386fae3c8bcdb81225b8c5ea43118
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added .doctrees/api.doctree
Binary file not shown.
Binary file added .doctrees/environment.pickle
Binary file not shown.
Binary file added .doctrees/examples/index.doctree
Binary file not shown.
Binary file added .doctrees/examples/sg_execution_times.doctree
Binary file not shown.
Binary file added .doctrees/examples/spatial_indexing.doctree
Binary file not shown.
Binary file added .doctrees/index.doctree
Binary file not shown.
Binary file added .doctrees/sg_execution_times.doctree
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"outputs": [],
"source": [
"import os\n\nos.environ[\"NUMBA_DISABLE_JIT\"] = \"1\" # small examples, avoid JIT overhead\n\nimport matplotlib.pyplot as plt\nimport numpy as np\nfrom matplotlib.collections import LineCollection\n\nfrom numba_celltree import CellTree2d, demo"
"import os\n\nimport matplotlib.pyplot as plt\nimport numpy as np\nfrom matplotlib.collections import LineCollection\n\nos.environ[\"NUMBA_DISABLE_JIT\"] = \"1\" # small examples, avoid JIT overhead\nfrom numba_celltree import CellTree2d, demo # noqa E402"
]
},
{
Expand Down Expand Up @@ -323,7 +323,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Binary file modified _downloads/bc82bea3a5dd7bdba60b65220891d9e5/examples_python.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@
"""
import os

os.environ["NUMBA_DISABLE_JIT"] = "1" # small examples, avoid JIT overhead

import matplotlib.pyplot as plt
import numpy as np
from matplotlib.collections import LineCollection

from numba_celltree import CellTree2d, demo
os.environ["NUMBA_DISABLE_JIT"] = "1" # small examples, avoid JIT overhead
from numba_celltree import CellTree2d, demo # noqa E402

###############################################################################
# Let's start with a rectangular mesh:
Expand Down
Binary file modified _downloads/fb625db3c50d423b1b7881136ffdeec8/examples_jupyter.zip
Binary file not shown.
Binary file modified _images/sphx_glr_spatial_indexing_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_spatial_indexing_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_spatial_indexing_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_spatial_indexing_004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_spatial_indexing_005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_spatial_indexing_006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_spatial_indexing_007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_spatial_indexing_008.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_spatial_indexing_009.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_spatial_indexing_010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_spatial_indexing_011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_spatial_indexing_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 11 additions & 12 deletions _modules/numba_celltree/celltree.html
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ <h1>Source code for numba_celltree.celltree</h1><div class="highlight"><pre>
<a class="viewcode-back" href="../../api.html#numba_celltree.CellTree2d.locate_points">[docs]</a>
<span class="k">def</span> <span class="nf">locate_points</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">points</span><span class="p">:</span> <span class="n">FloatArray</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">IntArray</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Finds the index of a face that contains a point.</span>
<span class="sd"> Find the index of a face that contains a point.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
Expand All @@ -560,7 +560,7 @@ <h1>Source code for numba_celltree.celltree</h1><div class="highlight"><pre>
<a class="viewcode-back" href="../../api.html#numba_celltree.CellTree2d.locate_boxes">[docs]</a>
<span class="k">def</span> <span class="nf">locate_boxes</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">bbox_coords</span><span class="p">:</span> <span class="n">FloatArray</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Tuple</span><span class="p">[</span><span class="n">IntArray</span><span class="p">,</span> <span class="n">IntArray</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Finds the index of a face intersecting with a bounding box.</span>
<span class="sd"> Find the index of a face intersecting with a bounding box.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
Expand All @@ -580,9 +580,11 @@ <h1>Source code for numba_celltree.celltree</h1><div class="highlight"><pre>

<div class="viewcode-block" id="CellTree2d.intersect_boxes">
<a class="viewcode-back" href="../../api.html#numba_celltree.CellTree2d.intersect_boxes">[docs]</a>
<span class="k">def</span> <span class="nf">intersect_boxes</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">bbox_coords</span><span class="p">:</span> <span class="n">FloatArray</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Tuple</span><span class="p">[</span><span class="n">IntArray</span><span class="p">,</span> <span class="n">IntArray</span><span class="p">]:</span>
<span class="k">def</span> <span class="nf">intersect_boxes</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span> <span class="n">bbox_coords</span><span class="p">:</span> <span class="n">FloatArray</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Tuple</span><span class="p">[</span><span class="n">IntArray</span><span class="p">,</span> <span class="n">IntArray</span><span class="p">,</span> <span class="n">FloatArray</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Finds the index of a box intersecting with a face, and the area</span>
<span class="sd"> Find the index of a box intersecting with a face, and the area</span>
<span class="sd"> of intersection.</span>

<span class="sd"> Parameters</span>
Expand Down Expand Up @@ -618,7 +620,7 @@ <h1>Source code for numba_celltree.celltree</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="p">,</span> <span class="n">vertices</span><span class="p">:</span> <span class="n">FloatArray</span><span class="p">,</span> <span class="n">faces</span><span class="p">:</span> <span class="n">IntArray</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Tuple</span><span class="p">[</span><span class="n">IntArray</span><span class="p">,</span> <span class="n">IntArray</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Finds the index of a face intersecting with another face.</span>
<span class="sd"> Find the index of a face intersecting with another face.</span>

<span class="sd"> Only sharing an edge also counts as an intersection, due to the use of</span>
<span class="sd"> the separating axis theorem to define intersection. The area of the</span>
Expand Down Expand Up @@ -659,7 +661,7 @@ <h1>Source code for numba_celltree.celltree</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="p">,</span> <span class="n">vertices</span><span class="p">:</span> <span class="n">FloatArray</span><span class="p">,</span> <span class="n">faces</span><span class="p">:</span> <span class="n">IntArray</span><span class="p">,</span> <span class="n">fill_value</span><span class="p">:</span> <span class="nb">int</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Tuple</span><span class="p">[</span><span class="n">IntArray</span><span class="p">,</span> <span class="n">IntArray</span><span class="p">,</span> <span class="n">FloatArray</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Finds the index of a face intersecting with another face, and the area</span>
<span class="sd"> Find the index of a face intersecting with another face, and the area</span>
<span class="sd"> of intersection.</span>

<span class="sd"> Parameters</span>
Expand Down Expand Up @@ -705,7 +707,7 @@ <h1>Source code for numba_celltree.celltree</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="p">,</span> <span class="n">edge_coords</span><span class="p">:</span> <span class="n">FloatArray</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Tuple</span><span class="p">[</span><span class="n">IntArray</span><span class="p">,</span> <span class="n">IntArray</span><span class="p">,</span> <span class="n">FloatArray</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Finds the index of a face intersecting with an edge.</span>
<span class="sd"> Find the index of a face intersecting with an edge.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
Expand All @@ -732,7 +734,7 @@ <h1>Source code for numba_celltree.celltree</h1><div class="highlight"><pre>
<span class="n">points</span><span class="p">:</span> <span class="n">FloatArray</span><span class="p">,</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Tuple</span><span class="p">[</span><span class="n">IntArray</span><span class="p">,</span> <span class="n">FloatArray</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Computes barycentric weights for points located inside of the grid.</span>
<span class="sd"> Compute barycentric weights for points located inside of the grid.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
Expand Down Expand Up @@ -766,9 +768,7 @@ <h1>Source code for numba_celltree.celltree</h1><div class="highlight"><pre>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">node_bounds</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Return the bounds (xmin, xmax, ymin, ymax) for every node of the tree.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Return the bounds (xmin, xmax, ymin, ymax) for every node of the tree.&quot;&quot;&quot;</span>
<span class="k">return</span> <span class="n">collect_node_bounds</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">celltree_data</span><span class="p">)</span>

<div class="viewcode-block" id="CellTree2d.validate_node_bounds">
Expand Down Expand Up @@ -805,7 +805,6 @@ <h1>Source code for numba_celltree.celltree</h1><div class="highlight"><pre>

<span class="sd"> Examples</span>
<span class="sd"> --------</span>

<span class="sd"> &gt;&gt;&gt; import networkx</span>
<span class="sd"> &gt;&gt;&gt; from networkx.drawing.nx_pydot import graphviz_layout</span>
<span class="sd"> &gt;&gt;&gt; d = celltree.to_dict_of_lists()</span>
Expand Down
4 changes: 2 additions & 2 deletions _sources/examples/sg_execution_times.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Computation times
=================
**00:01.159** total execution time for 1 file **from examples**:
**00:00.974** total execution time for 1 file **from examples**:

.. container::

Expand All @@ -33,5 +33,5 @@ Computation times
- Time
- Mem (MB)
* - :ref:`sphx_glr_examples_spatial_indexing.py` (``spatial_indexing.py``)
- 00:01.159
- 00:00.974
- 0.0
Loading

0 comments on commit 253070a

Please sign in to comment.