Skip to content

Commit

Permalink
deploy: 2d36965
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Jul 12, 2024
1 parent 685c0dc commit abddf25
Show file tree
Hide file tree
Showing 58 changed files with 329 additions and 327 deletions.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/examples-dev/sg_execution_times.doctree
Binary file not shown.
Binary file modified .doctrees/examples-dev/voronoi.doctree
Binary file not shown.
Binary file modified .doctrees/examples/connectivity.doctree
Binary file not shown.
Binary file modified .doctrees/examples/overlap_regridder.doctree
Binary file not shown.
Binary file modified .doctrees/examples/partitioning.doctree
Binary file not shown.
Binary file modified .doctrees/examples/plotting.doctree
Binary file not shown.
Binary file modified .doctrees/examples/quick_overview.doctree
Binary file not shown.
Binary file modified .doctrees/examples/regridder_overview.doctree
Binary file not shown.
Binary file modified .doctrees/examples/selection.doctree
Binary file not shown.
Binary file modified .doctrees/examples/sg_execution_times.doctree
Binary file not shown.
Binary file modified .doctrees/examples/vector_conversion.doctree
Binary file not shown.
Binary file modified .doctrees/sample_data/adh_san_diego.doctree
Binary file not shown.
Binary file modified .doctrees/sample_data/disk.doctree
Binary file not shown.
Binary file modified .doctrees/sample_data/elevation_nl.doctree
Binary file not shown.
Binary file modified .doctrees/sample_data/provinces_nl.doctree
Binary file not shown.
Binary file modified .doctrees/sample_data/sg_execution_times.doctree
Binary file not shown.
Binary file modified .doctrees/sample_data/xoxo.doctree
Binary file not shown.
Binary file modified .doctrees/sg_execution_times.doctree
Binary file not shown.
1 change: 1 addition & 0 deletions _modules/xugrid/ugrid/partitioning.html
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ <h1>Source code for xugrid.ugrid.partitioning</h1><div class="highlight"><pre>
<span class="n">_</span><span class="p">,</span> <span class="n">index</span><span class="p">,</span> <span class="n">inverse</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">unique</span><span class="p">(</span>
<span class="n">node_xy</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="n">return_index</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">return_inverse</span><span class="o">=</span><span class="kc">True</span>
<span class="p">)</span>
<span class="n">inverse</span> <span class="o">=</span> <span class="n">inverse</span><span class="o">.</span><span class="n">ravel</span><span class="p">()</span>
<span class="c1"># We want to maintain order, so create an inverse index to the new numbers.</span>
<span class="n">inverse</span> <span class="o">=</span> <span class="n">renumber</span><span class="p">(</span><span class="n">index</span><span class="p">)[</span><span class="n">inverse</span><span class="p">]</span>
<span class="c1"># Maintain order.</span>
Expand Down
1 change: 1 addition & 0 deletions _modules/xugrid/ugrid/ugrid2d.html
Original file line number Diff line number Diff line change
Expand Up @@ -2050,6 +2050,7 @@ <h1>Source code for xugrid.ugrid.ugrid2d</h1><div class="highlight"><pre>
<span class="n">_</span><span class="p">,</span> <span class="n">node_index</span><span class="p">,</span> <span class="n">inverse</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">unique</span><span class="p">(</span>
<span class="n">coordinates</span><span class="p">,</span> <span class="n">return_index</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">return_inverse</span><span class="o">=</span><span class="kc">True</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="n">inverse</span> <span class="o">=</span> <span class="n">inverse</span><span class="o">.</span><span class="n">ravel</span><span class="p">()</span>
<span class="c1"># Create a mapping of the inverse index to the new node index.</span>
<span class="n">new_index</span> <span class="o">=</span> <span class="n">connectivity</span><span class="o">.</span><span class="n">renumber</span><span class="p">(</span><span class="n">node_index</span><span class="p">)</span>
<span class="n">new_faces</span> <span class="o">=</span> <span class="n">new_index</span><span class="p">[</span><span class="n">inverse</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">face_node_connectivity</span><span class="p">]]</span>
Expand Down
4 changes: 2 additions & 2 deletions _sources/examples-dev/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.163** total execution time for 1 file **from examples-dev**:
**00:01.107** total execution time for 1 file **from examples-dev**:

.. container::

Expand All @@ -33,5 +33,5 @@ Computation times
- Time
- Mem (MB)
* - :ref:`sphx_glr_examples-dev_voronoi.py` (``voronoi.py``)
- 00:01.163
- 00:01.107
- 0.0
2 changes: 1 addition & 1 deletion _sources/examples-dev/voronoi.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ The figure shows:
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 1.163 seconds)
**Total running time of the script:** (0 minutes 1.107 seconds)


.. _sphx_glr_download_examples-dev_voronoi.py:
Expand Down
26 changes: 13 additions & 13 deletions _sources/examples/connectivity.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ By default, the border value for binary erosion is set to ``False`` (equal to
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fd2886100e0>
<matplotlib.collections.PolyCollection object at 0x7f41d33af200>
Expand Down Expand Up @@ -165,7 +165,7 @@ start by setting a single value in the center of the grid to ``True``.
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fd290738590>
<matplotlib.collections.PolyCollection object at 0x7f41dc0f8830>
Expand Down Expand Up @@ -200,7 +200,7 @@ alternative border value:
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fd2913cdc40>
<matplotlib.collections.PolyCollection object at 0x7f41dcc4c710>
Expand Down Expand Up @@ -238,7 +238,7 @@ analyse connected parts of the mesh.
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fd28684bd70>
<matplotlib.collections.PolyCollection object at 0x7f41dc0c9760>
Expand Down Expand Up @@ -272,7 +272,7 @@ Tesselation.
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7fd2913bcf20>
<matplotlib.collections.LineCollection object at 0x7f41d3ea08f0>
Expand Down Expand Up @@ -316,7 +316,7 @@ the original.
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7fd29162ff20>
<matplotlib.collections.LineCollection object at 0x7f41d3e26e70>
Expand Down Expand Up @@ -355,7 +355,7 @@ We can break down one of the Voronoi tesselations from above into triangles:
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7fd2868a4230>
<matplotlib.collections.LineCollection object at 0x7f41d2b01a00>
Expand Down Expand Up @@ -409,7 +409,7 @@ the upper and lower parts:
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7fd286b573b0>
<matplotlib.collections.LineCollection object at 0x7f41dc098c20>
Expand Down Expand Up @@ -439,7 +439,7 @@ We can now use Laplace interpolation to fill the gaps in the grid.
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fd286a57a10>
<matplotlib.collections.PolyCollection object at 0x7f41d31f7d70>
Expand Down Expand Up @@ -477,7 +477,7 @@ interpolation.
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fd286a57ad0>
<matplotlib.collections.PolyCollection object at 0x7f41d2769490>
Expand Down Expand Up @@ -518,7 +518,7 @@ To illustrate, let's take a look at the connectivity matrix of the Xoxo grid.
.. code-block:: none
<matplotlib.image.AxesImage object at 0x7fd2875a6390>
<matplotlib.image.AxesImage object at 0x7f41d330f0b0>
Expand Down Expand Up @@ -554,14 +554,14 @@ locality:
.. code-block:: none
<matplotlib.image.AxesImage object at 0x7fd2876447a0>
<matplotlib.image.AxesImage object at 0x7f41d2c4aa50>
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 1.379 seconds)
**Total running time of the script:** (0 minutes 1.341 seconds)


.. _sphx_glr_download_examples_connectivity.py:
Expand Down
10 changes: 5 additions & 5 deletions _sources/examples/overlap_regridder.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ some bathymetry) of the Netherlands, and a coarser target grid.
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7fd287850980>
<matplotlib.collections.LineCollection object at 0x7f41d29d7440>
Expand Down Expand Up @@ -202,7 +202,7 @@ conservative methods, such as conductance:
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fd288664bf0>
<matplotlib.collections.PolyCollection object at 0x7f41d29d16a0>
Expand Down Expand Up @@ -280,7 +280,7 @@ To use our custom method, we provide at initialization of the OverlapRegridder:
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fd2913ff8f0>
<matplotlib.collections.PolyCollection object at 0x7f41d1f460f0>
Expand Down Expand Up @@ -320,7 +320,7 @@ function can deal with NaN values! -- hence ``nanpercentile`` rather than
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fd2874e3d70>
<matplotlib.collections.PolyCollection object at 0x7f41dc0204d0>
Expand All @@ -331,7 +331,7 @@ function can deal with NaN values! -- hence ``nanpercentile`` rather than

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 4.045 seconds)
**Total running time of the script:** (0 minutes 3.893 seconds)


.. _sphx_glr_download_examples_overlap_regridder.py:
Expand Down
Loading

0 comments on commit abddf25

Please sign in to comment.