Skip to content

Commit

Permalink
deploy: 78e5be7
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Sep 4, 2024
1 parent 9cdf740 commit 2910de4
Show file tree
Hide file tree
Showing 84 changed files with 331 additions and 334 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.
Binary file modified _downloads/1da8bbc63e9e34158260eadd1533549c/quick_overview.zip
Binary file not shown.
Binary file modified _downloads/2dbba5ebb6d2057d196983a008981162/voronoi.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/3e8af3e56da80727f8440a5b5f94f5cb/disk.zip
Binary file not shown.
Binary file modified _downloads/3eb350a8b54f214b88c5181e546a155e/adh_san_diego.zip
Binary file not shown.
Binary file modified _downloads/422003fc9b51482872f8f3701ce47abe/provinces_nl.zip
Binary file not shown.
Binary file modified _downloads/43d7b47db560c8c70c383a84a444ed83/connectivity.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/97eabe2c66fc9328b1e51f27fdee52f6/partitioning.zip
Binary file not shown.
Binary file modified _downloads/9be12df0ec6c323839ed0cb99cc89228/elevation_nl.zip
Binary file not shown.
Binary file modified _downloads/a50ba9731493d1c74010dcadb8694b20/selection.zip
Binary file not shown.
Binary file modified _downloads/cc393383c363f7c590c6ef714836f52a/xoxo.zip
Binary file not shown.
Binary file modified _downloads/d2379110fee2f2fbaf724f0142daaa8d/plotting.zip
Binary file not shown.
Binary file not shown.
Binary file modified _images/sphx_glr_connectivity_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_connectivity_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_connectivity_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_partitioning_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_partitioning_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_regridder_overview_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_vector_conversion_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_vector_conversion_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_vector_conversion_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_vector_conversion_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_vector_conversion_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_vector_conversion_011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 2 additions & 5 deletions _modules/xugrid/ugrid/partitioning.html
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ <h1>Source code for xugrid.ugrid.partitioning</h1><div class="highlight"><pre>

<span class="kn">from</span> <span class="nn">xugrid.constants</span> <span class="kn">import</span> <span class="n">IntArray</span><span class="p">,</span> <span class="n">IntDType</span>
<span class="kn">from</span> <span class="nn">xugrid.core.wrap</span> <span class="kn">import</span> <span class="n">UgridDataArray</span><span class="p">,</span> <span class="n">UgridDataset</span>
<span class="kn">from</span> <span class="nn">xugrid.ugrid.connectivity</span> <span class="kn">import</span> <span class="n">renumber</span>
<span class="kn">from</span> <span class="nn">xugrid.ugrid.connectivity</span> <span class="kn">import</span> <span class="n">renumber</span><span class="p">,</span> <span class="n">unique_rows</span>
<span class="kn">from</span> <span class="nn">xugrid.ugrid.ugridbase</span> <span class="kn">import</span> <span class="n">UgridType</span>


Expand Down Expand Up @@ -478,10 +478,7 @@ <h1>Source code for xugrid.ugrid.partitioning</h1><div class="highlight"><pre>
<span class="n">node_x</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">hstack</span><span class="p">([</span><span class="n">grid</span><span class="o">.</span><span class="n">node_x</span> <span class="k">for</span> <span class="n">grid</span> <span class="ow">in</span> <span class="n">grids</span><span class="p">])</span>
<span class="n">node_y</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">hstack</span><span class="p">([</span><span class="n">grid</span><span class="o">.</span><span class="n">node_y</span> <span class="k">for</span> <span class="n">grid</span> <span class="ow">in</span> <span class="n">grids</span><span class="p">])</span>
<span class="n">node_xy</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">column_stack</span><span class="p">((</span><span class="n">node_x</span><span class="p">,</span> <span class="n">node_y</span><span class="p">))</span>
<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="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">unique_rows</span><span class="p">(</span><span class="n">node_xy</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="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
8 changes: 4 additions & 4 deletions _modules/xugrid/ugrid/ugrid2d.html
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ <h1>Source code for xugrid.ugrid.ugrid2d</h1><div class="highlight"><pre>
<span class="p">)</span>
<span class="kn">from</span> <span class="nn">xugrid.core.utils</span> <span class="kn">import</span> <span class="n">either_dict_or_kwargs</span>
<span class="kn">from</span> <span class="nn">xugrid.ugrid</span> <span class="kn">import</span> <span class="n">connectivity</span><span class="p">,</span> <span class="n">conventions</span>
<span class="kn">from</span> <span class="nn">xugrid.ugrid.connectivity</span> <span class="kn">import</span> <span class="n">unique_rows</span>
<span class="kn">from</span> <span class="nn">xugrid.ugrid.ugridbase</span> <span class="kn">import</span> <span class="n">AbstractUgrid</span><span class="p">,</span> <span class="n">as_pandas_index</span>
<span class="kn">from</span> <span class="nn">xugrid.ugrid.voronoi</span> <span class="kn">import</span> <span class="n">voronoi_topology</span>

Expand Down Expand Up @@ -2128,10 +2129,9 @@ <h1>Source code for xugrid.ugrid.ugrid2d</h1><div class="highlight"><pre>
<span class="c1"># Discard the rightmost nodes. Preserve the order in the faces, and the</span>
<span class="c1"># order of the nodes.</span>
<span class="n">coordinates</span><span class="p">[</span><span class="n">is_right</span><span class="p">,</span> <span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="n">xmin</span>
<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="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">unique_rows</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">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 All @@ -2145,7 +2145,7 @@ <h1>Source code for xugrid.ugrid.ugrid2d</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_edge_node_connectivity</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">new_edges</span> <span class="o">=</span> <span class="n">inverse</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">edge_node_connectivity</span><span class="p">]</span>
<span class="n">new_edges</span><span class="o">.</span><span class="n">sort</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">_</span><span class="p">,</span> <span class="n">edge_index</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">new_edges</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">_</span><span class="p">,</span> <span class="n">edge_index</span> <span class="o">=</span> <span class="n">unique_rows</span><span class="p">(</span><span class="n">new_edges</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">edge_index</span><span class="o">.</span><span class="n">sort</span><span class="p">()</span>
<span class="n">new_edges</span> <span class="o">=</span> <span class="n">new_index</span><span class="p">[</span><span class="n">new_edges</span><span class="p">][</span><span class="n">edge_index</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.366** total execution time for 1 file **from examples-dev**:
**00:01.314** 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.366
- 00:01.314
- 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 @@ -680,7 +680,7 @@ The figure shows:
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 1.366 seconds)
**Total running time of the script:** (0 minutes 1.314 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 0x7fe2588a8440>
<matplotlib.collections.PolyCollection object at 0x7f6c3e44ecf0>
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 0x7fe2588e7c80>
<matplotlib.collections.PolyCollection object at 0x7f6c3e69be00>
Expand Down Expand Up @@ -200,7 +200,7 @@ alternative border value:
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fe259c796d0>
<matplotlib.collections.PolyCollection object at 0x7f6c3e25c1d0>
Expand Down Expand Up @@ -238,7 +238,7 @@ analyse connected parts of the mesh.
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fe25879dd30>
<matplotlib.collections.PolyCollection object at 0x7f6c48227890>
Expand Down Expand Up @@ -272,7 +272,7 @@ Tesselation.
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7fe258b511f0>
<matplotlib.collections.LineCollection object at 0x7f6c47680710>
Expand Down Expand Up @@ -316,7 +316,7 @@ the original.
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7fe258867650>
<matplotlib.collections.LineCollection object at 0x7f6c3eb61d60>
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 0x7fe25958cad0>
<matplotlib.collections.LineCollection object at 0x7f6c3df4b050>
Expand Down Expand Up @@ -409,7 +409,7 @@ the upper and lower parts:
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7fe258a24b60>
<matplotlib.collections.LineCollection object at 0x7f6c3dfab530>
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 0x7fe258b50ec0>
<matplotlib.collections.PolyCollection object at 0x7f6c3e396300>
Expand Down Expand Up @@ -477,7 +477,7 @@ interpolation.
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fe25896fda0>
<matplotlib.collections.PolyCollection object at 0x7f6c3e71ef90>
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 0x7fe258a25bb0>
<matplotlib.image.AxesImage object at 0x7f6c3e4e0200>
Expand Down Expand Up @@ -554,14 +554,14 @@ locality:
.. code-block:: none
<matplotlib.image.AxesImage object at 0x7fe262cdbb30>
<matplotlib.image.AxesImage object at 0x7f6c3e682ea0>
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 1.423 seconds)
**Total running time of the script:** (0 minutes 1.343 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 0x7fe2595cd0d0>
<matplotlib.collections.LineCollection object at 0x7f6c3df45df0>
Expand Down Expand Up @@ -202,7 +202,7 @@ conservative methods, such as conductance:
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fe26270b9b0>
<matplotlib.collections.PolyCollection object at 0x7f6c3e25ef90>
Expand Down Expand Up @@ -298,7 +298,7 @@ OverlapRegridder:
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fe2588e41a0>
<matplotlib.collections.PolyCollection object at 0x7f6c48226f90>
Expand Down Expand Up @@ -373,7 +373,7 @@ Then, provide it as the regridder method as above:
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7fe259a94080>
<matplotlib.collections.PolyCollection object at 0x7f6c4754b650>
Expand All @@ -384,7 +384,7 @@ Then, provide it as the regridder method as above:

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

**Total running time of the script:** (0 minutes 4.057 seconds)
**Total running time of the script:** (0 minutes 4.150 seconds)


.. _sphx_glr_download_examples_overlap_regridder.py:
Expand Down
Loading

0 comments on commit 2910de4

Please sign in to comment.