Skip to content

Commit

Permalink
Deploying to gh-pages from @ 0c01034 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
leavauchier committed Apr 16, 2024
1 parent 44f90eb commit 8f7d868
Show file tree
Hide file tree
Showing 29 changed files with 206 additions and 133 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: fd5eb1438bd9bf37a103350bcfc01499
config: 7da5eb014733f8246883ccbde337b5e1
tags: 645f666f9bcd5a90fca523b33c5a78b7
4 changes: 2 additions & 2 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &mdash; lidar_prod V1.10.1 documentation</title>
<title>Overview: module code &mdash; lidar_prod V1.10.2 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx_paramlinks.css" />
Expand All @@ -15,7 +15,7 @@

<script src="../_static/jquery.js?v=5d32c60e"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../_static/documentation_options.js?v=7742af75"></script>
<script src="../_static/documentation_options.js?v=40ba251f"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="https://unpkg.com/mermaid@10.2.0/dist/mermaid.min.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions _modules/lidar_prod/commons/commons.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lidar_prod.commons.commons &mdash; lidar_prod V1.10.1 documentation</title>
<title>lidar_prod.commons.commons &mdash; lidar_prod V1.10.2 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../../_static/sphinx_paramlinks.css" />
Expand All @@ -15,7 +15,7 @@

<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=7742af75"></script>
<script src="../../../_static/documentation_options.js?v=40ba251f"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="https://unpkg.com/mermaid@10.2.0/dist/mermaid.min.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions _modules/lidar_prod/run.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lidar_prod.run &mdash; lidar_prod V1.10.1 documentation</title>
<title>lidar_prod.run &mdash; lidar_prod V1.10.2 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/sphinx_paramlinks.css" />
Expand All @@ -15,7 +15,7 @@

<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=7742af75"></script>
<script src="../../_static/documentation_options.js?v=40ba251f"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="https://unpkg.com/mermaid@10.2.0/dist/mermaid.min.js"></script>
Expand Down
25 changes: 15 additions & 10 deletions _modules/lidar_prod/tasks/building_completion.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lidar_prod.tasks.building_completion &mdash; lidar_prod V1.10.1 documentation</title>
<title>lidar_prod.tasks.building_completion &mdash; lidar_prod V1.10.2 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../../_static/sphinx_paramlinks.css" />
Expand All @@ -15,7 +15,7 @@

<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=7742af75"></script>
<script src="../../../_static/documentation_options.js?v=40ba251f"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="https://unpkg.com/mermaid@10.2.0/dist/mermaid.min.js"></script>
Expand Down Expand Up @@ -189,26 +189,33 @@ <h1>Source code for lidar_prod.tasks.building_completion</h1><div class="highlig

<div class="viewcode-block" id="BuildingCompletor.run">
<a class="viewcode-back" href="../../../apidoc/lidar_prod.tasks.html#lidar_prod.tasks.building_completion.BuildingCompletor.run">[docs]</a>
<span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">input_values</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">pdal</span><span class="o">.</span><span class="n">pipeline</span><span class="o">.</span><span class="n">Pipeline</span><span class="p">]):</span>
<span class="k">def</span> <span class="nf">run</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span> <span class="n">input_values</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">pdal</span><span class="o">.</span><span class="n">pipeline</span><span class="o">.</span><span class="n">Pipeline</span><span class="p">],</span> <span class="n">las_metadata</span><span class="p">:</span> <span class="nb">dict</span> <span class="o">=</span> <span class="kc">None</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Application.</span>

<span class="sd"> Transform cloud at `src_las_path` following building completion logic</span>

<span class="sd"> Args:</span>
<span class="sd"> input_values (str|pdal.pipeline.Pipeline): path to either input LAS file or a pipeline</span>
<span class="sd"> target_las_path (str): path for saving updated LAS file.</span>
<span class="sd"> las_metadata (dict): current pipeline metadata, used to propagate input metadata to the</span>
<span class="sd"> application output las (epsg, las version, etc)</span>

<span class="sd"> Returns:</span>
<span class="sd"> str: returns `target_las_path` for potential terminal piping.</span>

<span class="sd"> str: returns `las_metadata`: metadata of the initial las, which contain</span>
<span class="sd"> information to pass to the writer in order for the application to have an output</span>
<span class="sd"> with the same header (las version, srs, ...) as the input</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">log</span><span class="o">.</span><span class="n">info</span><span class="p">(</span>
<span class="s2">&quot;Completion of building with relatively distant points that have high enough &quot;</span>
<span class="o">+</span> <span class="s2">&quot;probability&quot;</span>
<span class="p">)</span>
<span class="n">pipeline</span> <span class="o">=</span> <span class="n">get_pipeline</span><span class="p">(</span><span class="n">input_values</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">data_format</span><span class="o">.</span><span class="n">epsg</span><span class="p">)</span>
<span class="n">pipeline</span><span class="p">,</span> <span class="n">las_metadata</span> <span class="o">=</span> <span class="n">get_pipeline</span><span class="p">(</span><span class="n">input_values</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">data_format</span><span class="o">.</span><span class="n">epsg</span><span class="p">,</span> <span class="n">las_metadata</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">prepare_for_building_completion</span><span class="p">(</span><span class="n">pipeline</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">update_classification</span><span class="p">()</span></div>
<span class="bp">self</span><span class="o">.</span><span class="n">update_classification</span><span class="p">()</span>

<span class="k">return</span> <span class="n">las_metadata</span></div>


<div class="viewcode-block" id="BuildingCompletor.prepare_for_building_completion">
Expand All @@ -223,9 +230,7 @@ <h1>Source code for lidar_prod.tasks.building_completion</h1><div class="highlig
<span class="sd"> the same building and they will be confirmed as well.</span>

<span class="sd"> Args:</span>
<span class="sd"> src_las_path (pdal.pipeline.Pipeline): input LAS pipeline</span>
<span class="sd"> target_las_path (str): output, prepared LAS.</span>

<span class="sd"> pipeline (pdal.pipeline.Pipeline): input LAS pipeline</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="c1"># Reset Cluster dim out of safety</span>
Expand Down
17 changes: 11 additions & 6 deletions _modules/lidar_prod/tasks/building_identification.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lidar_prod.tasks.building_identification &mdash; lidar_prod V1.10.1 documentation</title>
<title>lidar_prod.tasks.building_identification &mdash; lidar_prod V1.10.2 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../../_static/sphinx_paramlinks.css" />
Expand All @@ -15,7 +15,7 @@

<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=7742af75"></script>
<script src="../../../_static/documentation_options.js?v=40ba251f"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="https://unpkg.com/mermaid@10.2.0/dist/mermaid.min.js"></script>
Expand Down Expand Up @@ -184,22 +184,27 @@ <h1>Source code for lidar_prod.tasks.building_identification</h1><div class="hig
<span class="bp">self</span><span class="p">,</span>
<span class="n">input_values</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">pdal</span><span class="o">.</span><span class="n">pipeline</span><span class="o">.</span><span class="n">Pipeline</span><span class="p">],</span>
<span class="n">target_las_path</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
<span class="n">las_metadata</span><span class="p">:</span> <span class="nb">dict</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Identify potential buildings in a new channel, excluding former candidates as well as</span>
<span class="sd"> already confirmed building (confirmed by either Validation or Completion).</span>

<span class="sd"> Args:</span>
<span class="sd"> input_values (str | pdal.pipeline.Pipeline): path or pipeline to input LAS file with</span>
<span class="sd"> a building probability channel</span>
<span class="sd"> target_las_path (str): output LAS</span>
<span class="sd"> las_metadata (dict): current pipeline metadata, used to propagate input metadata to the</span>
<span class="sd"> application output las (epsg, las version, etc)</span>

<span class="sd"> Returns: updated las_metadata</span>

<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># aliases</span>
<span class="n">_cid</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">data_format</span><span class="o">.</span><span class="n">las_dimensions</span><span class="o">.</span><span class="n">cluster_id</span>
<span class="n">_completion_flag</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">data_format</span><span class="o">.</span><span class="n">las_dimensions</span><span class="o">.</span><span class="n">completion_non_candidate_flag</span>

<span class="n">log</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s2">&quot;Clustering of points with high building proba.&quot;</span><span class="p">)</span>
<span class="n">pipeline</span> <span class="o">=</span> <span class="n">get_pipeline</span><span class="p">(</span><span class="n">input_values</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">data_format</span><span class="o">.</span><span class="n">epsg</span><span class="p">)</span>
<span class="n">pipeline</span><span class="p">,</span> <span class="n">las_metadata</span> <span class="o">=</span> <span class="n">get_pipeline</span><span class="p">(</span><span class="n">input_values</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">data_format</span><span class="o">.</span><span class="n">epsg</span><span class="p">,</span> <span class="n">las_metadata</span><span class="p">)</span>

<span class="c1"># Considered for identification:</span>
<span class="n">non_candidates</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&quot;(</span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">data_format</span><span class="o">.</span><span class="n">las_dimensions</span><span class="o">.</span><span class="n">candidate_buildings_flag</span><span class="si">}</span><span class="s2"> == 0)&quot;</span>
Expand Down Expand Up @@ -228,13 +233,13 @@ <h1>Source code for lidar_prod.tasks.building_identification</h1><div class="hig
<span class="n">dimensions</span><span class="o">=</span><span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">_cid</span><span class="si">}</span><span class="s2">=&gt;</span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">data_format</span><span class="o">.</span><span class="n">las_dimensions</span><span class="o">.</span><span class="n">ai_building_identified</span><span class="si">}</span><span class="s2">&quot;</span>
<span class="p">)</span>
<span class="k">if</span> <span class="n">target_las_path</span><span class="p">:</span>
<span class="n">pipeline</span> <span class="o">|=</span> <span class="n">get_pdal_writer</span><span class="p">(</span><span class="n">target_las_path</span><span class="p">)</span>
<span class="n">pipeline</span> <span class="o">|=</span> <span class="n">get_pdal_writer</span><span class="p">(</span><span class="n">target_las_path</span><span class="p">,</span> <span class="n">las_metadata</span><span class="p">)</span>
<span class="n">os</span><span class="o">.</span><span class="n">makedirs</span><span class="p">(</span><span class="n">osp</span><span class="o">.</span><span class="n">dirname</span><span class="p">(</span><span class="n">target_las_path</span><span class="p">),</span> <span class="n">exist_ok</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">pipeline</span><span class="o">.</span><span class="n">execute</span><span class="p">()</span>

<span class="bp">self</span><span class="o">.</span><span class="n">pipeline</span> <span class="o">=</span> <span class="n">pipeline</span>

<span class="k">return</span> <span class="n">target_las_path</span></div>
<span class="k">return</span> <span class="n">las_metadata</span></div>
</div>

</pre></div>
Expand Down
Loading

0 comments on commit 8f7d868

Please sign in to comment.