Skip to content

Commit

Permalink
deploy: 23e35c3
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Feb 2, 2024
1 parent d14502b commit 0b824b7
Show file tree
Hide file tree
Showing 21 changed files with 33 additions and 37 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: 99761a5b021ee4f1a04a0af4fc377a2d
config: 53e9dade407813046d886fdfa9396f7f
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/examples/gmsh-basic.doctree
Binary file not shown.
Binary file modified .doctrees/examples/sg_execution_times.doctree
Binary file not shown.
Binary file modified .doctrees/examples/triangle-basic.doctree
Binary file not shown.
Binary file modified .doctrees/examples/triangle-geospatial.doctree
Binary file not shown.
Binary file modified .doctrees/index.doctree
Binary file not shown.
Binary file modified .doctrees/sg_execution_times.doctree
Binary file not shown.
4 changes: 2 additions & 2 deletions _sources/examples/gmsh-basic.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ The GmshMesher class is initialized with a number of default parameters:
fields = Empty GeoDataFrame
Columns: []
Index: []
tmpdir = <TemporaryDirectory '/tmp/tmp95nd72ns'>
tmpdir = <TemporaryDirectory '/tmp/tmpuawprbm2'>
recombine_all = False
mesh_size_extend_from_boundary = True
mesh_size_from_points = True
Expand Down Expand Up @@ -319,7 +319,7 @@ polygons.

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

**Total running time of the script:** (0 minutes 0.544 seconds)
**Total running time of the script:** (0 minutes 0.543 seconds)


.. _sphx_glr_download_examples_gmsh-basic.py:
Expand Down
8 changes: 4 additions & 4 deletions _sources/examples/sg_execution_times.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Computation times
=================
**00:02.240** total execution time for 3 files **from examples**:
**00:02.244** total execution time for 3 files **from examples**:

.. container::

Expand All @@ -33,11 +33,11 @@ Computation times
- Time
- Mem (MB)
* - :ref:`sphx_glr_examples_triangle-basic.py` (``triangle-basic.py``)
- 00:00.927
- 00:00.931
- 0.0
* - :ref:`sphx_glr_examples_triangle-geospatial.py` (``triangle-geospatial.py``)
- 00:00.769
- 00:00.770
- 0.0
* - :ref:`sphx_glr_examples_gmsh-basic.py` (``gmsh-basic.py``)
- 00:00.544
- 00:00.543
- 0.0
2 changes: 1 addition & 1 deletion _sources/examples/triangle-basic.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ sizes, and linestrings and points to steer the triangulation.

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

**Total running time of the script:** (0 minutes 0.927 seconds)
**Total running time of the script:** (0 minutes 0.931 seconds)


.. _sphx_glr_download_examples_triangle-basic.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/examples/triangle-geospatial.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ opened by e.g. QGIS.

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

**Total running time of the script:** (0 minutes 0.769 seconds)
**Total running time of the script:** (0 minutes 0.770 seconds)


.. _sphx_glr_download_examples_triangle-geospatial.py:
Expand Down
8 changes: 3 additions & 5 deletions _sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ unstructured meshes.

.. code:: python
import geopandas as gpd
import pandamesh as pm
# Get some sample data from geopandas.
world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
# Get some sample data in geopandas form.
south_america = pm.data.south_america()
# Select South America, explode any multi-polygon, and project it to UTM20.
south_america = world[world["continent"] == 'South America']
# Explode any multi-polygon, and project it to UTM20.
south_america = south_america.explode().reset_index().to_crs(epsg=32620)
# Set a maximum cell size of 500 km and generate a mesh.
Expand Down
8 changes: 4 additions & 4 deletions _sources/sg_execution_times.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Computation times
=================
**00:02.240** total execution time for 3 files **from all galleries**:
**00:02.244** total execution time for 3 files **from all galleries**:

.. container::

Expand All @@ -33,11 +33,11 @@ Computation times
- Time
- Mem (MB)
* - :ref:`sphx_glr_examples_triangle-basic.py` (``../examples/triangle-basic.py``)
- 00:00.927
- 00:00.931
- 0.0
* - :ref:`sphx_glr_examples_triangle-geospatial.py` (``../examples/triangle-geospatial.py``)
- 00:00.769
- 00:00.770
- 0.0
* - :ref:`sphx_glr_examples_gmsh-basic.py` (``../examples/gmsh-basic.py``)
- 00:00.544
- 00:00.543
- 0.0
4 changes: 2 additions & 2 deletions examples/gmsh-basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ <h2>Defaults<a class="headerlink" href="#defaults" title="Link to this heading">
fields = Empty GeoDataFrame
Columns: []
Index: []
tmpdir = &lt;TemporaryDirectory &#39;/tmp/tmp95nd72ns&#39;&gt;
tmpdir = &lt;TemporaryDirectory &#39;/tmp/tmpuawprbm2&#39;&gt;
recombine_all = False
mesh_size_extend_from_boundary = True
mesh_size_from_points = True
Expand Down Expand Up @@ -540,7 +540,7 @@ <h2>Conclusion<a class="headerlink" href="#conclusion" title="Link to this headi
with associated cell sizes to steer the triangulation; unlike Triangle,
for Gmsh cell sizes can associated to linestrings and points, not just
polygons.</p>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 0.544 seconds)</p>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 0.543 seconds)</p>
<div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-examples-gmsh-basic-py">
<div class="sphx-glr-download sphx-glr-download-jupyter docutils container">
<p><a class="reference download internal" download="" href="../_downloads/4a143ec15d1fb171eec89ca2df70cc01/gmsh-basic.ipynb"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Jupyter</span> <span class="pre">notebook:</span> <span class="pre">gmsh-basic.ipynb</span></code></a></p>
Expand Down
8 changes: 4 additions & 4 deletions examples/sg_execution_times.html
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@

<section id="computation-times">
<span id="sphx-glr-examples-sg-execution-times"></span><h1>Computation times<a class="headerlink" href="#computation-times" title="Link to this heading">#</a></h1>
<p><strong>00:02.240</strong> total execution time for 3 files <strong>from examples</strong>:</p>
<p><strong>00:02.244</strong> total execution time for 3 files <strong>from examples</strong>:</p>
<div class="docutils container">
<style scoped>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
Expand All @@ -384,15 +384,15 @@
</thead>
<tbody>
<tr class="row-even"><td><p><a class="reference internal" href="triangle-basic.html#sphx-glr-examples-triangle-basic-py"><span class="std std-ref">Basic Triangle Example</span></a> (<code class="docutils literal notranslate"><span class="pre">triangle-basic.py</span></code>)</p></td>
<td><p>00:00.927</p></td>
<td><p>00:00.931</p></td>
<td><p>0.0</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="triangle-geospatial.html#sphx-glr-examples-triangle-geospatial-py"><span class="std std-ref">Geospatial Triangle Example</span></a> (<code class="docutils literal notranslate"><span class="pre">triangle-geospatial.py</span></code>)</p></td>
<td><p>00:00.769</p></td>
<td><p>00:00.770</p></td>
<td><p>0.0</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="gmsh-basic.html#sphx-glr-examples-gmsh-basic-py"><span class="std std-ref">Basic Gmsh Example</span></a> (<code class="docutils literal notranslate"><span class="pre">gmsh-basic.py</span></code>)</p></td>
<td><p>00:00.544</p></td>
<td><p>00:00.543</p></td>
<td><p>0.0</p></td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion examples/triangle-basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ <h2>Conclusion<a class="headerlink" href="#conclusion" title="Link to this headi
just a few coordinate pairs. Such cases are presented in the other examples,
but the same principles apply: we may use polygons with associated cell
sizes, and linestrings and points to steer the triangulation.</p>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 0.927 seconds)</p>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 0.931 seconds)</p>
<div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-examples-triangle-basic-py">
<div class="sphx-glr-download sphx-glr-download-jupyter docutils container">
<p><a class="reference download internal" download="" href="../_downloads/c93ce4bc3dd147e1f4354d872a3387a0/triangle-basic.ipynb"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Jupyter</span> <span class="pre">notebook:</span> <span class="pre">triangle-basic.ipynb</span></code></a></p>
Expand Down
2 changes: 1 addition & 1 deletion examples/triangle-geospatial.html
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ <h2>Conclusion<a class="headerlink" href="#conclusion" title="Link to this headi
functionality, but sometimes manual editing is required. Fortunately,
geopandas provides easy input and output for many file formats, which can be
opened by e.g. QGIS.</p>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 0.769 seconds)</p>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 0.770 seconds)</p>
<div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-examples-triangle-geospatial-py">
<div class="sphx-glr-download sphx-glr-download-jupyter docutils container">
<p><a class="reference download internal" download="" href="../_downloads/a12a4ea5eaa3778e285b02114c10d8a1/triangle-geospatial.ipynb"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Jupyter</span> <span class="pre">notebook:</span> <span class="pre">triangle-geospatial.ipynb</span></code></a></p>
Expand Down
10 changes: 4 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,12 @@
<h1>Pandamesh<a class="headerlink" href="#pandamesh" title="Link to this heading">#</a></h1>
<p>This package translates geospatial vector data (points, lines, or polygons) to
unstructured meshes.</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">geopandas</span> <span class="k">as</span> <span class="nn">gpd</span>
<span class="kn">import</span> <span class="nn">pandamesh</span> <span class="k">as</span> <span class="nn">pm</span>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">pandamesh</span> <span class="k">as</span> <span class="nn">pm</span>

<span class="c1"># Get some sample data from geopandas.</span>
<span class="n">world</span> <span class="o">=</span> <span class="n">gpd</span><span class="o">.</span><span class="n">read_file</span><span class="p">(</span><span class="n">gpd</span><span class="o">.</span><span class="n">datasets</span><span class="o">.</span><span class="n">get_path</span><span class="p">(</span><span class="s1">&#39;naturalearth_lowres&#39;</span><span class="p">))</span>
<span class="c1"># Get some sample data in geopandas form.</span>
<span class="n">south_america</span> <span class="o">=</span> <span class="n">pm</span><span class="o">.</span><span class="n">data</span><span class="o">.</span><span class="n">south_america</span><span class="p">()</span>

<span class="c1"># Select South America, explode any multi-polygon, and project it to UTM20.</span>
<span class="n">south_america</span> <span class="o">=</span> <span class="n">world</span><span class="p">[</span><span class="n">world</span><span class="p">[</span><span class="s2">&quot;continent&quot;</span><span class="p">]</span> <span class="o">==</span> <span class="s1">&#39;South America&#39;</span><span class="p">]</span>
<span class="c1"># Explode any multi-polygon, and project it to UTM20.</span>
<span class="n">south_america</span> <span class="o">=</span> <span class="n">south_america</span><span class="o">.</span><span class="n">explode</span><span class="p">()</span><span class="o">.</span><span class="n">reset_index</span><span class="p">()</span><span class="o">.</span><span class="n">to_crs</span><span class="p">(</span><span class="n">epsg</span><span class="o">=</span><span class="mi">32620</span><span class="p">)</span>

<span class="c1"># Set a maximum cell size of 500 km and generate a mesh.</span>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions sg_execution_times.html
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@

<section id="computation-times">
<span id="sphx-glr-sg-execution-times"></span><h1>Computation times<a class="headerlink" href="#computation-times" title="Link to this heading">#</a></h1>
<p><strong>00:02.240</strong> total execution time for 3 files <strong>from all galleries</strong>:</p>
<p><strong>00:02.244</strong> total execution time for 3 files <strong>from all galleries</strong>:</p>
<div class="docutils container">
<style scoped>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
Expand All @@ -384,15 +384,15 @@
</thead>
<tbody>
<tr class="row-even"><td><p><a class="reference internal" href="examples/triangle-basic.html#sphx-glr-examples-triangle-basic-py"><span class="std std-ref">Basic Triangle Example</span></a> (<code class="docutils literal notranslate"><span class="pre">../examples/triangle-basic.py</span></code>)</p></td>
<td><p>00:00.927</p></td>
<td><p>00:00.931</p></td>
<td><p>0.0</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="examples/triangle-geospatial.html#sphx-glr-examples-triangle-geospatial-py"><span class="std std-ref">Geospatial Triangle Example</span></a> (<code class="docutils literal notranslate"><span class="pre">../examples/triangle-geospatial.py</span></code>)</p></td>
<td><p>00:00.769</p></td>
<td><p>00:00.770</p></td>
<td><p>0.0</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="examples/gmsh-basic.html#sphx-glr-examples-gmsh-basic-py"><span class="std std-ref">Basic Gmsh Example</span></a> (<code class="docutils literal notranslate"><span class="pre">../examples/gmsh-basic.py</span></code>)</p></td>
<td><p>00:00.544</p></td>
<td><p>00:00.543</p></td>
<td><p>0.0</p></td>
</tr>
</tbody>
Expand Down

0 comments on commit 0b824b7

Please sign in to comment.