Skip to content

Commit

Permalink
Deploying to gh-pages from @ a2deea4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
JBris committed Sep 17, 2024
1 parent a4d58f4 commit bbb7f15
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 10 deletions.
4 changes: 3 additions & 1 deletion _modules/deeprootgen/data_model/simulation_data_models.html
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ <h1>Source code for deeprootgen.data_model.simulation_data_models</h1><div class
<span class="n">summary_statistics</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]]</span> <span class="o">=</span> <span class="kc">None</span>
<span class="n">distance_metric</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span>
<span class="n">stat_by_soil_layer</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">bool</span><span class="p">]</span> <span class="o">=</span> <span class="kc">False</span>
<span class="n">stat_by_soil_column</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">bool</span><span class="p">]</span> <span class="o">=</span> <span class="kc">False</span></div>
<span class="n">stat_by_soil_column</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">bool</span><span class="p">]</span> <span class="o">=</span> <span class="kc">False</span>
<span class="n">use_summary_statistics</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">bool</span><span class="p">]</span> <span class="o">=</span> <span class="kc">True</span></div>



Expand Down Expand Up @@ -315,6 +316,7 @@ <h1>Source code for deeprootgen.data_model.simulation_data_models</h1><div class
<span class="n">summary_statistics</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">List</span><span class="p">[</span><span class="n">SummaryStatisticsModel</span><span class="p">]]</span> <span class="o">=</span> <span class="kc">None</span>
<span class="n">observed_data</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">List</span><span class="p">[</span><span class="n">RootNodeModel</span><span class="p">]]</span> <span class="o">=</span> <span class="kc">None</span>
<span class="n">observed_data_content</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span>
<span class="n">raw_edge_content</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span>
<span class="n">statistics_comparison</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">StatisticsComparisonModel</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span>
<span class="n">origin_min</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">float</span><span class="p">]</span> <span class="o">=</span> <span class="mf">1e-3</span>
<span class="n">origin_max</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">float</span><span class="p">]</span> <span class="o">=</span> <span class="mf">1e-2</span>
Expand Down
23 changes: 21 additions & 2 deletions _modules/deeprootgen/form/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,10 @@ <h1>Source code for deeprootgen.form.components</h1><div class="highlight"><pre>
<span class="n">observed_data</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="nb">dict</span><span class="p">]</span> <span class="o">|</span> <span class="kc">None</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="n">summary_statistics</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="nb">dict</span><span class="p">]</span> <span class="o">|</span> <span class="kc">None</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="n">observed_data_content</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span><span class="p">,</span>
<span class="n">raw_edge_content</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span><span class="p">,</span>
<span class="n">stat_by_layer</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">,</span>
<span class="n">stat_by_col</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">,</span>
<span class="n">use_summary_statistics</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">True</span><span class="p">,</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span> <span class="o">|</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Build calibration parameters for workflow submission from form inputs.</span>

Expand All @@ -642,10 +644,14 @@ <h1>Source code for deeprootgen.form.components</h1><div class="highlight"><pre>
<span class="sd"> The list of observed summary statistic data. Defaults to None.</span>
<span class="sd"> observed_data_content (str, optional):</span>
<span class="sd"> The raw content string for the observed root data. Defaults to &quot;&quot;.</span>
<span class="sd"> raw_edge_content (str, optional):</span>
<span class="sd"> The raw content string for the simulated edge data. Defaults to &quot;&quot;.</span>
<span class="sd"> stat_by_layer (bool, optional):</span>
<span class="sd"> Whether to calculate statistics by soil layer. Defaults to False.</span>
<span class="sd"> stat_by_col (bool, optional ):</span>
<span class="sd"> stat_by_col (bool, optional):</span>
<span class="sd"> Whether to calculate statistics by soil column. Defaults to False.</span>
<span class="sd"> use_summary_statistics (bool, optional):</span>
<span class="sd"> Whether to use summary statistics rather than graph data. Defaults to True.</span>

<span class="sd"> Returns:</span>
<span class="sd"> dict | None:</span>
Expand Down Expand Up @@ -674,7 +680,11 @@ <h1>Source code for deeprootgen.form.components</h1><div class="highlight"><pre>
<span class="n">k</span> <span class="o">=</span> <span class="nb">input</span><span class="p">[</span><span class="s2">&quot;param&quot;</span><span class="p">]</span>
<span class="n">calibration_value</span> <span class="o">=</span> <span class="n">calibration_values</span><span class="p">[</span><span class="n">i</span><span class="p">]</span>
<span class="k">if</span> <span class="n">k</span> <span class="o">==</span> <span class="s2">&quot;summary_statistics&quot;</span> <span class="ow">or</span> <span class="n">k</span> <span class="o">==</span> <span class="s2">&quot;distance_metric&quot;</span><span class="p">:</span>
<span class="k">if</span> <span class="n">calibration_value</span> <span class="ow">is</span> <span class="kc">None</span> <span class="ow">or</span> <span class="nb">len</span><span class="p">(</span><span class="n">calibration_value</span><span class="p">)</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
<span class="k">if</span> <span class="p">(</span>
<span class="n">calibration_value</span> <span class="ow">is</span> <span class="kc">None</span>
<span class="ow">or</span> <span class="nb">len</span><span class="p">(</span><span class="n">calibration_value</span><span class="p">)</span> <span class="o">==</span> <span class="mi">0</span>
<span class="ow">and</span> <span class="n">use_summary_statistics</span>
<span class="p">):</span>
<span class="k">return</span> <span class="kc">None</span>

<span class="k">if</span> <span class="nb">input</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;statistic_parameter&quot;</span><span class="p">):</span>
Expand All @@ -684,9 +694,18 @@ <h1>Source code for deeprootgen.form.components</h1><div class="highlight"><pre>

<span class="n">form_inputs</span><span class="p">[</span><span class="s2">&quot;statistics_comparison&quot;</span><span class="p">][</span><span class="s2">&quot;stat_by_soil_layer&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="n">stat_by_layer</span>
<span class="n">form_inputs</span><span class="p">[</span><span class="s2">&quot;statistics_comparison&quot;</span><span class="p">][</span><span class="s2">&quot;stat_by_soil_column&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="n">stat_by_col</span>
<span class="n">form_inputs</span><span class="p">[</span><span class="s2">&quot;statistics_comparison&quot;</span><span class="p">][</span>
<span class="s2">&quot;use_summary_statistics&quot;</span>
<span class="p">]</span> <span class="o">=</span> <span class="n">use_summary_statistics</span>

<span class="k">if</span> <span class="n">use_summary_statistics</span><span class="p">:</span>
<span class="n">observed_data_content</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span>
<span class="n">raw_edge_content</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span>

<span class="n">form_inputs</span><span class="p">[</span><span class="s2">&quot;observed_data&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="n">observed_data</span>
<span class="n">form_inputs</span><span class="p">[</span><span class="s2">&quot;summary_statistics&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="n">summary_statistics</span>
<span class="n">form_inputs</span><span class="p">[</span><span class="s2">&quot;observed_data_content&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="n">observed_data_content</span>
<span class="n">form_inputs</span><span class="p">[</span><span class="s2">&quot;raw_edge_content&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="n">raw_edge_content</span>

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

Expand Down
Loading

0 comments on commit bbb7f15

Please sign in to comment.