Skip to content

Commit

Permalink
deploy: ca5cc63
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Aug 15, 2023
1 parent c322284 commit afdd5c4
Show file tree
Hide file tree
Showing 36 changed files with 239 additions and 239 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: 15ea3581e18cb273c4670f0c3774fd96
config: e1ed1a3d920602e4eadf13cda3459ce3
tags: 645f666f9bcd5a90fca523b33c5a78b7
4 changes: 2 additions & 2 deletions _modules/xugrid/regrid/regridder.html
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ <h1>Source code for xugrid.regrid.regridder</h1><div class="highlight"><pre>

<span class="n">regridded</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">regrid_dataarray</span><span class="p">(</span><span class="n">obj</span><span class="p">,</span> <span class="n">source_dims</span><span class="p">)</span>

<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_target</span><span class="p">)</span> <span class="ow">is</span> <span class="n">StructuredGrid2d</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_target</span><span class="p">,</span> <span class="n">StructuredGrid2d</span><span class="p">):</span>
<span class="n">regridded</span> <span class="o">=</span> <span class="n">regridded</span><span class="o">.</span><span class="n">assign_coords</span><span class="p">(</span><span class="n">coords</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">_target</span><span class="o">.</span><span class="n">coords</span><span class="p">)</span>
<span class="k">return</span> <span class="n">regridded</span>
<span class="k">else</span><span class="p">:</span>
Expand Down Expand Up @@ -904,7 +904,7 @@ <h1>Source code for xugrid.regrid.regridder</h1><div class="highlight"><pre>

<span class="k">def</span> <span class="nf">_compute_weights</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">target</span><span class="p">):</span>
<span class="n">source</span><span class="p">,</span> <span class="n">target</span> <span class="o">=</span> <span class="n">convert_to_match</span><span class="p">(</span><span class="n">source</span><span class="p">,</span> <span class="n">target</span><span class="p">)</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">source</span><span class="p">)</span> <span class="o">==</span> <span class="n">StructuredGrid2d</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">source</span><span class="p">,</span> <span class="n">StructuredGrid2d</span><span class="p">):</span>
<span class="n">source_index</span><span class="p">,</span> <span class="n">target_index</span><span class="p">,</span> <span class="n">weights</span> <span class="o">=</span> <span class="n">source</span><span class="o">.</span><span class="n">linear_weights</span><span class="p">(</span><span class="n">target</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">source_index</span><span class="p">,</span> <span class="n">target_index</span><span class="p">,</span> <span class="n">weights</span> <span class="o">=</span> <span class="n">source</span><span class="o">.</span><span class="n">barycentric</span><span class="p">(</span><span class="n">target</span><span class="p">)</span>
Expand Down
2 changes: 1 addition & 1 deletion _modules/xugrid/ugrid/snapping.html
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ <h1>Source code for xugrid.ugrid.snapping</h1><div class="highlight"><pre>
<span class="n">edges</span><span class="p">,</span> <span class="n">line_index</span> <span class="o">=</span> <span class="n">_find_largest_edges</span><span class="p">(</span><span class="n">segment_edges</span><span class="p">,</span> <span class="n">edge_index</span><span class="p">,</span> <span class="n">line_index</span><span class="p">)</span>
<span class="n">shapely_index</span> <span class="o">=</span> <span class="n">shapely_index</span><span class="p">[</span><span class="n">line_index</span><span class="p">]</span>

<span class="n">uds</span> <span class="o">=</span> <span class="n">_create_output_dataset</span><span class="p">(</span><span class="n">lines</span><span class="p">,</span> <span class="n">topology</span><span class="p">,</span> <span class="n">edges</span><span class="p">,</span> <span class="n">line_index</span><span class="p">)</span>
<span class="n">uds</span> <span class="o">=</span> <span class="n">_create_output_dataset</span><span class="p">(</span><span class="n">lines</span><span class="p">,</span> <span class="n">topology</span><span class="p">,</span> <span class="n">edges</span><span class="p">,</span> <span class="n">shapely_index</span><span class="p">)</span>
<span class="n">gdf</span> <span class="o">=</span> <span class="n">_create_output_gdf</span><span class="p">(</span>
<span class="n">lines</span><span class="p">,</span> <span class="n">vertices</span><span class="p">,</span> <span class="n">edge_node_connectivity</span><span class="p">,</span> <span class="n">edges</span><span class="p">,</span> <span class="n">shapely_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,8 +6,8 @@

Computation times
=================
**00:01.747** total execution time for **examples-dev** files:
**00:02.024** total execution time for **examples-dev** files:

+----------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples-dev_voronoi.py` (``voronoi.py``) | 00:01.747 | 0.0 MB |
| :ref:`sphx_glr_examples-dev_voronoi.py` (``voronoi.py``) | 00:02.024 | 0.0 MB |
+----------------------------------------------------------+-----------+--------+
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.747 seconds)
**Total running time of the script:** ( 0 minutes 2.024 seconds)


.. _sphx_glr_download_examples-dev_voronoi.py:
Expand Down
24 changes: 12 additions & 12 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 0x7f01383bc3d0>
<matplotlib.collections.PolyCollection object at 0x7fce727c83d0>
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 0x7f0138fca190>
<matplotlib.collections.PolyCollection object at 0x7fce84e8c9d0>
Expand Down Expand Up @@ -200,7 +200,7 @@ alternative border value:
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7f0138537130>
<matplotlib.collections.PolyCollection object at 0x7fce713fc580>
Expand Down Expand Up @@ -238,7 +238,7 @@ analyse connected parts of the mesh.
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7f0139a47a60>
<matplotlib.collections.PolyCollection object at 0x7fce7101ceb0>
Expand Down Expand Up @@ -272,7 +272,7 @@ Tesselation.
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7f013a4ba460>
<matplotlib.collections.LineCollection object at 0x7fce7218deb0>
Expand Down Expand Up @@ -316,7 +316,7 @@ the original.
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7f013b7d63d0>
<matplotlib.collections.LineCollection object at 0x7fce71fdf820>
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 0x7f0138fb4640>
<matplotlib.collections.LineCollection object at 0x7fce80b52a90>
Expand Down Expand Up @@ -409,7 +409,7 @@ the upper and lower parts:
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7f01382426a0>
<matplotlib.collections.LineCollection object at 0x7fce713b5af0>
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 0x7f0138f3fe20>
<matplotlib.collections.PolyCollection object at 0x7fce80ad32e0>
Expand Down Expand Up @@ -480,7 +480,7 @@ To illustrate, let's take a look at the connectivity matrix of the Xoxo grid.
.. code-block:: none
<matplotlib.image.AxesImage object at 0x7f01398ee610>
<matplotlib.image.AxesImage object at 0x7fce72966a90>
Expand Down Expand Up @@ -516,14 +516,14 @@ locality:
.. code-block:: none
<matplotlib.image.AxesImage object at 0x7f013999beb0>
<matplotlib.image.AxesImage object at 0x7fce71092af0>
.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 1.781 seconds)
**Total running time of the script:** ( 0 minutes 2.061 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 @@ -114,7 +114,7 @@ some bathymetry) of the Netherlands, and a coarser target grid.
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7f0138fc6f70>
<matplotlib.collections.LineCollection object at 0x7fce720b9b20>
Expand Down Expand Up @@ -204,7 +204,7 @@ conservative methods, such as conductance:
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7f013b9c3610>
<matplotlib.collections.PolyCollection object at 0x7fce72adca60>
Expand Down Expand Up @@ -282,7 +282,7 @@ To use our custom method, we provide at initialization of the OverlapRegridder:
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7f01399ee9a0>
<matplotlib.collections.PolyCollection object at 0x7fce72246df0>
Expand Down Expand Up @@ -322,7 +322,7 @@ function can deal with NaN values! -- hence ``nanpercentile`` rather than
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7f013b7467c0>
<matplotlib.collections.PolyCollection object at 0x7fce80777460>
Expand All @@ -333,7 +333,7 @@ function can deal with NaN values! -- hence ``nanpercentile`` rather than

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

**Total running time of the script:** ( 0 minutes 5.288 seconds)
**Total running time of the script:** ( 0 minutes 6.326 seconds)


.. _sphx_glr_download_examples_overlap_regridder.py:
Expand Down
Loading

0 comments on commit afdd5c4

Please sign in to comment.