Skip to content

Commit

Permalink
deploy: a62217d
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Sep 13, 2024
1 parent ef553e8 commit 56dec24
Show file tree
Hide file tree
Showing 75 changed files with 699 additions and 439 deletions.
Binary file modified .doctrees/api/xugrid.UgridDataArray.doctree
Binary file not shown.
Binary file modified .doctrees/api/xugrid.UgridDataset.doctree
Binary file not shown.
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.
Binary file modified _images/sphx_glr_connectivity_012.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 31 additions & 13 deletions _modules/xarray/core/common.html

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions _modules/xarray/core/concat.html
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ <h1>Source code for xarray.core.concat</h1><div class="highlight"><pre>
<span class="n">dim</span> <span class="o">=</span> <span class="n">dim_or_data</span>
<span class="n">index</span> <span class="o">=</span> <span class="kc">None</span>
<span class="k">else</span><span class="p">:</span>
<span class="k">if</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">dim_or_data</span><span class="p">,</span> <span class="p">(</span><span class="n">DataArray</span><span class="p">,</span> <span class="n">Variable</span><span class="p">)):</span>
<span class="k">if</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">dim_or_data</span><span class="p">,</span> <span class="n">DataArray</span> <span class="o">|</span> <span class="n">Variable</span><span class="p">):</span>
<span class="n">dim</span> <span class="o">=</span> <span class="nb">getattr</span><span class="p">(</span><span class="n">dim_or_data</span><span class="p">,</span> <span class="s2">&quot;name&quot;</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
<span class="k">if</span> <span class="n">dim</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">dim</span> <span class="o">=</span> <span class="s2">&quot;concat_dim&quot;</span>
Expand Down Expand Up @@ -800,7 +800,9 @@ <h1>Source code for xarray.core.concat</h1><div class="highlight"><pre>
<span class="n">equals</span><span class="p">[</span><span class="n">k</span><span class="p">]</span> <span class="o">=</span> <span class="kc">False</span>
<span class="c1"># computed variables are not to be re-computed</span>
<span class="c1"># again in the future</span>
<span class="k">for</span> <span class="n">ds</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="n">datasets</span><span class="p">[</span><span class="mi">1</span><span class="p">:],</span> <span class="n">computed</span><span class="p">):</span>
<span class="k">for</span> <span class="n">ds</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span>
<span class="n">datasets</span><span class="p">[</span><span class="mi">1</span><span class="p">:],</span> <span class="n">computed</span><span class="p">,</span> <span class="n">strict</span><span class="o">=</span><span class="kc">False</span>
<span class="p">):</span>
<span class="n">ds</span><span class="o">.</span><span class="n">variables</span><span class="p">[</span><span class="n">k</span><span class="p">]</span><span class="o">.</span><span class="n">data</span> <span class="o">=</span> <span class="n">v</span><span class="o">.</span><span class="n">data</span>
<span class="k">break</span>
<span class="k">else</span><span class="p">:</span>
Expand Down Expand Up @@ -983,7 +985,7 @@ <h1>Source code for xarray.core.concat</h1><div class="highlight"><pre>
<span class="n">common_dims</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">(</span><span class="n">utils</span><span class="o">.</span><span class="n">OrderedSet</span><span class="p">(</span><span class="n">d</span> <span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="nb">vars</span> <span class="k">for</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">v</span><span class="o">.</span><span class="n">dims</span><span class="p">))</span>
<span class="k">if</span> <span class="n">dim_name</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">common_dims</span><span class="p">:</span>
<span class="n">common_dims</span> <span class="o">=</span> <span class="p">(</span><span class="n">dim_name</span><span class="p">,)</span> <span class="o">+</span> <span class="n">common_dims</span>
<span class="k">for</span> <span class="n">var</span><span class="p">,</span> <span class="n">dim_len</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="nb">vars</span><span class="p">,</span> <span class="n">concat_dim_lengths</span><span class="p">):</span>
<span class="k">for</span> <span class="n">var</span><span class="p">,</span> <span class="n">dim_len</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="nb">vars</span><span class="p">,</span> <span class="n">concat_dim_lengths</span><span class="p">,</span> <span class="n">strict</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
<span class="k">if</span> <span class="n">var</span><span class="o">.</span><span class="n">dims</span> <span class="o">!=</span> <span class="n">common_dims</span><span class="p">:</span>
<span class="n">common_shape</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">(</span><span class="n">dims_sizes</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">d</span><span class="p">,</span> <span class="n">dim_len</span><span class="p">)</span> <span class="k">for</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">common_dims</span><span class="p">)</span>
<span class="n">var</span> <span class="o">=</span> <span class="n">var</span><span class="o">.</span><span class="n">set_dims</span><span class="p">(</span><span class="n">common_dims</span><span class="p">,</span> <span class="n">common_shape</span><span class="p">)</span>
Expand Down
16 changes: 8 additions & 8 deletions _modules/xarray/core/merge.html
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ <h1>Source code for xarray.core.merge</h1><div class="highlight"><pre>

<span class="kn">from</span> <span class="nn">collections</span> <span class="kn">import</span> <span class="n">defaultdict</span>
<span class="kn">from</span> <span class="nn">collections.abc</span> <span class="kn">import</span> <span class="n">Hashable</span><span class="p">,</span> <span class="n">Iterable</span><span class="p">,</span> <span class="n">Mapping</span><span class="p">,</span> <span class="n">Sequence</span><span class="p">,</span> <span class="n">Set</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">TYPE_CHECKING</span><span class="p">,</span> <span class="n">Any</span><span class="p">,</span> <span class="n">NamedTuple</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Union</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">TYPE_CHECKING</span><span class="p">,</span> <span class="n">Any</span><span class="p">,</span> <span class="n">NamedTuple</span><span class="p">,</span> <span class="n">Union</span>

<span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>

Expand Down Expand Up @@ -463,7 +463,7 @@ <h1>Source code for xarray.core.merge</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">dims</span><span class="p">:</span> <span class="nb">dict</span><span class="p">[</span><span class="n">Hashable</span><span class="p">,</span> <span class="nb">int</span><span class="p">]</span> <span class="o">=</span> <span class="p">{}</span>
<span class="k">for</span> <span class="n">var</span> <span class="ow">in</span> <span class="n">variables</span><span class="p">:</span>
<span class="k">for</span> <span class="n">dim</span><span class="p">,</span> <span class="n">size</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="n">var</span><span class="o">.</span><span class="n">dims</span><span class="p">,</span> <span class="n">var</span><span class="o">.</span><span class="n">shape</span><span class="p">):</span>
<span class="k">for</span> <span class="n">dim</span><span class="p">,</span> <span class="n">size</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="n">var</span><span class="o">.</span><span class="n">dims</span><span class="p">,</span> <span class="n">var</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">strict</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
<span class="k">if</span> <span class="n">dim</span> <span class="ow">in</span> <span class="n">dims</span> <span class="ow">and</span> <span class="n">size</span> <span class="o">!=</span> <span class="n">dims</span><span class="p">[</span><span class="n">dim</span><span class="p">]:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;index </span><span class="si">{</span><span class="n">dim</span><span class="si">!r}</span><span class="s2"> not aligned&quot;</span><span class="p">)</span>
<span class="n">dims</span><span class="p">[</span><span class="n">dim</span><span class="p">]</span> <span class="o">=</span> <span class="n">size</span>
Expand Down Expand Up @@ -555,7 +555,7 @@ <h1>Source code for xarray.core.merge</h1><div class="highlight"><pre>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;compat=</span><span class="si">{</span><span class="n">compat</span><span class="si">!r}</span><span class="s2"> invalid: must be </span><span class="si">{</span><span class="nb">set</span><span class="p">(</span><span class="n">_VALID_COMPAT</span><span class="p">)</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>


<span class="n">MergeElement</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">[</span><span class="n">Variable</span><span class="p">,</span> <span class="n">Optional</span><span class="p">[</span><span class="n">Index</span><span class="p">]]</span>
<span class="n">MergeElement</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">[</span><span class="n">Variable</span><span class="p">,</span> <span class="n">Index</span> <span class="o">|</span> <span class="kc">None</span><span class="p">]</span>


<span class="k">def</span> <span class="nf">_assert_prioritized_valid</span><span class="p">(</span>
Expand Down Expand Up @@ -664,7 +664,7 @@ <h1>Source code for xarray.core.merge</h1><div class="highlight"><pre>
<span class="n">index</span><span class="p">,</span> <span class="n">other_index</span><span class="p">,</span> <span class="n">variable</span><span class="p">,</span> <span class="n">other_var</span><span class="p">,</span> <span class="n">index_cmp_cache</span>
<span class="p">):</span>
<span class="k">raise</span> <span class="n">MergeError</span><span class="p">(</span>
<span class="sa">f</span><span class="s2">&quot;conflicting values/indexes on objects to be combined fo coordinate </span><span class="si">{</span><span class="n">name</span><span class="si">!r}</span><span class="se">\n</span><span class="s2">&quot;</span>
<span class="sa">f</span><span class="s2">&quot;conflicting values/indexes on objects to be combined for coordinate </span><span class="si">{</span><span class="n">name</span><span class="si">!r}</span><span class="se">\n</span><span class="s2">&quot;</span>
<span class="sa">f</span><span class="s2">&quot;first index: </span><span class="si">{</span><span class="n">index</span><span class="si">!r}</span><span class="se">\n</span><span class="s2">second index: </span><span class="si">{</span><span class="n">other_index</span><span class="si">!r}</span><span class="se">\n</span><span class="s2">&quot;</span>
<span class="sa">f</span><span class="s2">&quot;first variable: </span><span class="si">{</span><span class="n">variable</span><span class="si">!r}</span><span class="se">\n</span><span class="s2">second variable: </span><span class="si">{</span><span class="n">other_var</span><span class="si">!r}</span><span class="se">\n</span><span class="s2">&quot;</span>
<span class="p">)</span>
Expand Down Expand Up @@ -739,7 +739,7 @@ <h1>Source code for xarray.core.merge</h1><div class="highlight"><pre>
<span class="n">append</span><span class="p">(</span><span class="n">name</span><span class="p">,</span> <span class="n">variable</span><span class="p">,</span> <span class="n">indexes</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">name</span><span class="p">))</span>

<span class="k">for</span> <span class="n">mapping</span> <span class="ow">in</span> <span class="n">list_of_mappings</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">mapping</span><span class="p">,</span> <span class="p">(</span><span class="n">Coordinates</span><span class="p">,</span> <span class="n">Dataset</span><span class="p">)):</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">mapping</span><span class="p">,</span> <span class="n">Coordinates</span> <span class="o">|</span> <span class="n">Dataset</span><span class="p">):</span>
<span class="n">append_all</span><span class="p">(</span><span class="n">mapping</span><span class="o">.</span><span class="n">variables</span><span class="p">,</span> <span class="n">mapping</span><span class="o">.</span><span class="n">xindexes</span><span class="p">)</span>
<span class="k">continue</span>

Expand Down Expand Up @@ -874,7 +874,7 @@ <h1>Source code for xarray.core.merge</h1><div class="highlight"><pre>
<span class="n">out</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="n">DatasetLike</span><span class="p">]</span> <span class="o">=</span> <span class="p">[]</span>
<span class="k">for</span> <span class="n">obj</span> <span class="ow">in</span> <span class="n">objects</span><span class="p">:</span>
<span class="n">variables</span><span class="p">:</span> <span class="n">DatasetLike</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">obj</span><span class="p">,</span> <span class="p">(</span><span class="n">Dataset</span><span class="p">,</span> <span class="n">Coordinates</span><span class="p">)):</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">obj</span><span class="p">,</span> <span class="n">Dataset</span> <span class="o">|</span> <span class="n">Coordinates</span><span class="p">):</span>
<span class="n">variables</span> <span class="o">=</span> <span class="n">obj</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">variables</span> <span class="o">=</span> <span class="p">{}</span>
Expand Down Expand Up @@ -1118,7 +1118,7 @@ <h1>Source code for xarray.core.merge</h1><div class="highlight"><pre>
<span class="p">)</span>

<span class="n">attrs</span> <span class="o">=</span> <span class="n">merge_attrs</span><span class="p">(</span>
<span class="p">[</span><span class="n">var</span><span class="o">.</span><span class="n">attrs</span> <span class="k">for</span> <span class="n">var</span> <span class="ow">in</span> <span class="n">coerced</span> <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">var</span><span class="p">,</span> <span class="p">(</span><span class="n">Dataset</span><span class="p">,</span> <span class="n">DataArray</span><span class="p">))],</span>
<span class="p">[</span><span class="n">var</span><span class="o">.</span><span class="n">attrs</span> <span class="k">for</span> <span class="n">var</span> <span class="ow">in</span> <span class="n">coerced</span> <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">var</span><span class="p">,</span> <span class="n">Dataset</span> <span class="o">|</span> <span class="n">DataArray</span><span class="p">)],</span>
<span class="n">combine_attrs</span><span class="p">,</span>
<span class="p">)</span>

Expand Down Expand Up @@ -1360,7 +1360,7 @@ <h1>Source code for xarray.core.merge</h1><div class="highlight"><pre>

<span class="n">dict_like_objects</span> <span class="o">=</span> <span class="p">[]</span>
<span class="k">for</span> <span class="n">obj</span> <span class="ow">in</span> <span class="n">objects</span><span class="p">:</span>
<span class="k">if</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">obj</span><span class="p">,</span> <span class="p">(</span><span class="n">DataArray</span><span class="p">,</span> <span class="n">Dataset</span><span class="p">,</span> <span class="n">Coordinates</span><span class="p">,</span> <span class="nb">dict</span><span class="p">)):</span>
<span class="k">if</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">obj</span><span class="p">,</span> <span class="n">DataArray</span> <span class="o">|</span> <span class="n">Dataset</span> <span class="o">|</span> <span class="n">Coordinates</span> <span class="o">|</span> <span class="nb">dict</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span>
<span class="s2">&quot;objects must be an iterable containing only &quot;</span>
<span class="s2">&quot;Dataset(s), DataArray(s), and dictionaries.&quot;</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.385** total execution time for 1 file **from examples-dev**:
**00:01.352** 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.385
- 00:01.352
- 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 @@ -666,7 +666,7 @@ The figure shows:
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 1.385 seconds)
**Total running time of the script:** (0 minutes 1.352 seconds)


.. _sphx_glr_download_examples-dev_voronoi.py:
Expand Down
Loading

0 comments on commit 56dec24

Please sign in to comment.