Skip to content

Commit

Permalink
deploy: e5bdc98
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Aug 20, 2024
1 parent ed5f1b6 commit a3fa9a4
Show file tree
Hide file tree
Showing 70 changed files with 352 additions and 349 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/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.
2 changes: 1 addition & 1 deletion _modules/xugrid/core/dataarray_accessor.html
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ <h1>Source code for xugrid.core.dataarray_accessor</h1><div class="highlight"><p
<span class="k">else</span><span class="p">:</span>
<span class="n">ds</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">obj</span><span class="o">.</span><span class="n">to_dataset</span><span class="p">()</span>

<span class="n">variables</span> <span class="o">=</span> <span class="p">[</span><span class="n">varname</span> <span class="k">for</span> <span class="n">varname</span><span class="p">,</span> <span class="n">var</span> <span class="ow">in</span> <span class="n">ds</span><span class="o">.</span><span class="n">variables</span><span class="o">.</span><span class="n">items</span><span class="p">()</span> <span class="k">if</span> <span class="n">dim</span> <span class="ow">in</span> <span class="n">var</span><span class="o">.</span><span class="n">dims</span><span class="p">]</span>
<span class="n">variables</span> <span class="o">=</span> <span class="p">[</span><span class="n">var</span> <span class="k">for</span> <span class="n">var</span> <span class="ow">in</span> <span class="n">ds</span><span class="o">.</span><span class="n">data_vars</span> <span class="k">if</span> <span class="n">dim</span> <span class="ow">in</span> <span class="n">ds</span><span class="p">[</span><span class="n">var</span><span class="p">]</span><span class="o">.</span><span class="n">dims</span><span class="p">]</span>
<span class="c1"># TODO deal with time-dependent data, etc.</span>
<span class="c1"># Basically requires checking which variables are static, which aren&#39;t.</span>
<span class="c1"># For non-static, requires repeating all geometries.</span>
Expand Down
2 changes: 1 addition & 1 deletion _modules/xugrid/core/dataset_accessor.html
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ <h1>Source code for xugrid.core.dataset_accessor</h1><div class="highlight"><pre
<span class="k">else</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;invalid topology dimension on grid&quot;</span><span class="p">)</span>

<span class="n">variables</span> <span class="o">=</span> <span class="p">[</span><span class="n">varname</span> <span class="k">for</span> <span class="n">varname</span><span class="p">,</span> <span class="n">var</span> <span class="ow">in</span> <span class="n">ds</span><span class="o">.</span><span class="n">variables</span><span class="o">.</span><span class="n">items</span><span class="p">()</span> <span class="k">if</span> <span class="n">dim</span> <span class="ow">in</span> <span class="n">var</span><span class="o">.</span><span class="n">dims</span><span class="p">]</span>
<span class="n">variables</span> <span class="o">=</span> <span class="p">[</span><span class="n">var</span> <span class="k">for</span> <span class="n">var</span> <span class="ow">in</span> <span class="n">ds</span><span class="o">.</span><span class="n">data_vars</span> <span class="k">if</span> <span class="n">dim</span> <span class="ow">in</span> <span class="n">ds</span><span class="p">[</span><span class="n">var</span><span class="p">]</span><span class="o">.</span><span class="n">dims</span><span class="p">]</span>
<span class="k">if</span> <span class="n">variables</span><span class="p">:</span>
<span class="n">data</span> <span class="o">=</span> <span class="n">ds</span><span class="p">[</span><span class="n">variables</span><span class="p">]</span><span class="o">.</span><span class="n">to_dataframe</span><span class="p">(</span><span class="n">dim_order</span><span class="o">=</span><span class="n">dim_order</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
Expand Down
3 changes: 3 additions & 0 deletions _modules/xugrid/ugrid/conventions.html
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,9 @@ <h1>Source code for xugrid.ugrid.conventions</h1><div class="highlight"><pre>


<span class="k">def</span> <span class="nf">_get_topology</span><span class="p">(</span><span class="n">ds</span><span class="p">:</span> <span class="n">xr</span><span class="o">.</span><span class="n">Dataset</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]:</span>
<span class="c1"># looping over ds.variables.items() is way faster for datasets with many </span>
<span class="c1"># variables than accessing each var with ds[var]</span>
<span class="c1"># https://github.com/Deltares/xugrid/issues/285</span>
<span class="k">return</span> <span class="p">[</span><span class="n">varname</span> <span class="k">for</span> <span class="n">varname</span><span class="p">,</span> <span class="n">var</span> <span class="ow">in</span> <span class="n">ds</span><span class="o">.</span><span class="n">variables</span><span class="o">.</span><span class="n">items</span><span class="p">()</span> <span class="k">if</span> <span class="n">var</span><span class="o">.</span><span class="n">attrs</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;cf_role&quot;</span><span class="p">)</span> <span class="o">==</span> <span class="s2">&quot;mesh_topology&quot;</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.167** total execution time for 1 file **from examples-dev**:
**00:01.147** 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.167
- 00:01.147
- 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.167 seconds)
**Total running time of the script:** (0 minutes 1.147 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 0x7f4850141070>
<matplotlib.collections.PolyCollection object at 0x7f2532253b30>
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 0x7f484e4efbf0>
<matplotlib.collections.PolyCollection object at 0x7f253be5d4c0>
Expand Down Expand Up @@ -200,7 +200,7 @@ alternative border value:
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7f484f734e90>
<matplotlib.collections.PolyCollection object at 0x7f2532d3dca0>
Expand Down Expand Up @@ -238,7 +238,7 @@ analyse connected parts of the mesh.
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7f484e422690>
<matplotlib.collections.PolyCollection object at 0x7f253caacc80>
Expand Down Expand Up @@ -272,7 +272,7 @@ Tesselation.
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7f484e730aa0>
<matplotlib.collections.LineCollection object at 0x7f253be330e0>
Expand Down Expand Up @@ -316,7 +316,7 @@ the original.
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7f484f53b320>
<matplotlib.collections.LineCollection object at 0x7f253cae7920>
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 0x7f484e4792e0>
<matplotlib.collections.LineCollection object at 0x7f253caaeae0>
Expand Down Expand Up @@ -409,7 +409,7 @@ the upper and lower parts:
.. code-block:: none
<matplotlib.collections.LineCollection object at 0x7f4859138e60>
<matplotlib.collections.LineCollection object at 0x7f2532e8d310>
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 0x7f484f0ae1b0>
<matplotlib.collections.PolyCollection object at 0x7f2532e8fcb0>
Expand Down Expand Up @@ -477,7 +477,7 @@ interpolation.
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7f484e2e2ab0>
<matplotlib.collections.PolyCollection object at 0x7f2532b89940>
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 0x7f484f124fb0>
<matplotlib.image.AxesImage object at 0x7f25330da810>
Expand Down Expand Up @@ -554,14 +554,14 @@ locality:
.. code-block:: none
<matplotlib.image.AxesImage object at 0x7f48583503b0>
<matplotlib.image.AxesImage object at 0x7f2532b8b0b0>
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 1.390 seconds)
**Total running time of the script:** (0 minutes 1.413 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 0x7f484f50ffb0>
<matplotlib.collections.LineCollection object at 0x7f253320e150>
Expand Down Expand Up @@ -202,7 +202,7 @@ conservative methods, such as conductance:
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7f484f5fd400>
<matplotlib.collections.PolyCollection object at 0x7f2532cce660>
Expand Down Expand Up @@ -298,7 +298,7 @@ OverlapRegridder:
.. code-block:: none
<matplotlib.collections.PolyCollection object at 0x7f484f205cd0>
<matplotlib.collections.PolyCollection object at 0x7f253cb84470>
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 0x7f484e4efbc0>
<matplotlib.collections.PolyCollection object at 0x7f2532d37530>
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.118 seconds)
**Total running time of the script:** (0 minutes 4.005 seconds)


.. _sphx_glr_download_examples_overlap_regridder.py:
Expand Down
Loading

0 comments on commit a3fa9a4

Please sign in to comment.