Skip to content

Commit

Permalink
Deployed 9782032 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Oct 18, 2023
1 parent 5bea688 commit adeb9d1
Show file tree
Hide file tree
Showing 154 changed files with 4,354 additions and 4,342 deletions.
18 changes: 9 additions & 9 deletions changelog_update/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4596,7 +4596,7 @@ <h1>Changelog update</h1>
<!-- End of mermaid configuration --><div class="jupyter-wrapper">
<div class="jp-Notebook" data-jp-theme-light="true" data-jp-theme-name="JupyterLab Light">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=435c8590">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=6c6df092">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -4623,7 +4623,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=ec743e2e">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=cc3ded3d">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4676,7 +4676,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=d73461d9">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=e08577e6">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4705,7 +4705,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=6b37b9c9">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=714af6fa">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4738,7 +4738,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=a199e298">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=c48443b5">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4767,7 +4767,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=db96457c">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=6a1d89cf">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4812,7 +4812,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=38fb5d5e">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=a292368a">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4841,7 +4841,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=4b67a81b">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=5ae5d518">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4870,7 +4870,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=df65e0ea">
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=e2827946">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down
54 changes: 33 additions & 21 deletions map_widgets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4791,9 +4791,9 @@ <h2 id="geemap.map_widgets.Colorbar" class="doc doc-heading">
<span class="sd"> Raises:</span>
<span class="sd"> TypeError: If the vis_params is not a dictionary.</span>
<span class="sd"> ValueError: If the orientation is not either horizontal or vertical.</span>
<span class="sd"> ValueError: If the provided min value is not scalar type.</span>
<span class="sd"> ValueError: If the provided max value is not scalar type.</span>
<span class="sd"> ValueError: If the provided opacity value is not scalar type.</span>
<span class="sd"> ValueError: If the provided min value is not convertible to float.</span>
<span class="sd"> ValueError: If the provided max value is not convertible to float.</span>
<span class="sd"> ValueError: If the provided opacity value is not convertible to float.</span>
<span class="sd"> ValueError: If cmap or palette is not provided.</span>
<span class="sd"> &quot;&quot;&quot;</span>

Expand All @@ -4820,16 +4820,22 @@ <h2 id="geemap.map_widgets.Colorbar" class="doc doc-heading">
<span class="n">width</span><span class="p">,</span> <span class="n">height</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_get_dimensions</span><span class="p">(</span><span class="n">orientation</span><span class="p">,</span> <span class="n">kwargs</span><span class="p">)</span>

<span class="n">vmin</span> <span class="o">=</span> <span class="n">vis_params</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;min&quot;</span><span class="p">,</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="s2">&quot;vmin&quot;</span><span class="p">,</span> <span class="mi">0</span><span class="p">))</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">vmin</span><span class="p">)</span> <span class="ow">not</span> <span class="ow">in</span> <span class="p">(</span><span class="nb">int</span><span class="p">,</span> <span class="nb">float</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;The provided min value must be scalar type.&quot;</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>
<span class="n">vmin</span> <span class="o">=</span> <span class="nb">float</span><span class="p">(</span><span class="n">vmin</span><span class="p">)</span>
<span class="k">except</span> <span class="ne">ValueError</span> <span class="k">as</span> <span class="n">err</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;The provided min value must be scalar type.&quot;</span><span class="p">)</span>

<span class="n">vmax</span> <span class="o">=</span> <span class="n">vis_params</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;max&quot;</span><span class="p">,</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="s2">&quot;mvax&quot;</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">vmax</span><span class="p">)</span> <span class="ow">not</span> <span class="ow">in</span> <span class="p">(</span><span class="nb">int</span><span class="p">,</span> <span class="nb">float</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;The provided max value must be scalar type.&quot;</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>
<span class="n">vmax</span> <span class="o">=</span> <span class="nb">float</span><span class="p">(</span><span class="n">vmax</span><span class="p">)</span>
<span class="k">except</span> <span class="ne">ValueError</span> <span class="k">as</span> <span class="n">err</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;The provided max value must be scalar type.&quot;</span><span class="p">)</span>

<span class="n">alpha</span> <span class="o">=</span> <span class="n">vis_params</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;opacity&quot;</span><span class="p">,</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="s2">&quot;alpha&quot;</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">alpha</span><span class="p">)</span> <span class="ow">not</span> <span class="ow">in</span> <span class="p">(</span><span class="nb">int</span><span class="p">,</span> <span class="nb">float</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;The provided opacity or alpha value must be type scalar.&quot;</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>
<span class="n">alpha</span> <span class="o">=</span> <span class="nb">float</span><span class="p">(</span><span class="n">alpha</span><span class="p">)</span>
<span class="k">except</span> <span class="ne">ValueError</span> <span class="k">as</span> <span class="n">err</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;opacity or alpha value must be scalar type.&quot;</span><span class="p">)</span>

<span class="k">if</span> <span class="s2">&quot;palette&quot;</span> <span class="ow">in</span> <span class="n">vis_params</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
<span class="n">hexcodes</span> <span class="o">=</span> <span class="n">common</span><span class="o">.</span><span class="n">to_hex_colors</span><span class="p">(</span><span class="n">common</span><span class="o">.</span><span class="n">check_cmap</span><span class="p">(</span><span class="n">vis_params</span><span class="p">[</span><span class="s2">&quot;palette&quot;</span><span class="p">]))</span>
Expand Down Expand Up @@ -5016,15 +5022,15 @@ <h3 id="geemap.map_widgets.Colorbar.__init__" class="doc doc-heading">
</tr>
<tr>
<td><code>ValueError</code></td>
<td><p>If the provided min value is not scalar type.</p></td>
<td><p>If the provided min value is not convertible to float.</p></td>
</tr>
<tr>
<td><code>ValueError</code></td>
<td><p>If the provided max value is not scalar type.</p></td>
<td><p>If the provided max value is not convertible to float.</p></td>
</tr>
<tr>
<td><code>ValueError</code></td>
<td><p>If the provided opacity value is not scalar type.</p></td>
<td><p>If the provided opacity value is not convertible to float.</p></td>
</tr>
<tr>
<td><code>ValueError</code></td>
Expand Down Expand Up @@ -5073,9 +5079,9 @@ <h3 id="geemap.map_widgets.Colorbar.__init__" class="doc doc-heading">
<span class="sd"> Raises:</span>
<span class="sd"> TypeError: If the vis_params is not a dictionary.</span>
<span class="sd"> ValueError: If the orientation is not either horizontal or vertical.</span>
<span class="sd"> ValueError: If the provided min value is not scalar type.</span>
<span class="sd"> ValueError: If the provided max value is not scalar type.</span>
<span class="sd"> ValueError: If the provided opacity value is not scalar type.</span>
<span class="sd"> ValueError: If the provided min value is not convertible to float.</span>
<span class="sd"> ValueError: If the provided max value is not convertible to float.</span>
<span class="sd"> ValueError: If the provided opacity value is not convertible to float.</span>
<span class="sd"> ValueError: If cmap or palette is not provided.</span>
<span class="sd"> &quot;&quot;&quot;</span>

Expand All @@ -5102,16 +5108,22 @@ <h3 id="geemap.map_widgets.Colorbar.__init__" class="doc doc-heading">
<span class="n">width</span><span class="p">,</span> <span class="n">height</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_get_dimensions</span><span class="p">(</span><span class="n">orientation</span><span class="p">,</span> <span class="n">kwargs</span><span class="p">)</span>

<span class="n">vmin</span> <span class="o">=</span> <span class="n">vis_params</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;min&quot;</span><span class="p">,</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="s2">&quot;vmin&quot;</span><span class="p">,</span> <span class="mi">0</span><span class="p">))</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">vmin</span><span class="p">)</span> <span class="ow">not</span> <span class="ow">in</span> <span class="p">(</span><span class="nb">int</span><span class="p">,</span> <span class="nb">float</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;The provided min value must be scalar type.&quot;</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>
<span class="n">vmin</span> <span class="o">=</span> <span class="nb">float</span><span class="p">(</span><span class="n">vmin</span><span class="p">)</span>
<span class="k">except</span> <span class="ne">ValueError</span> <span class="k">as</span> <span class="n">err</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;The provided min value must be scalar type.&quot;</span><span class="p">)</span>

<span class="n">vmax</span> <span class="o">=</span> <span class="n">vis_params</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;max&quot;</span><span class="p">,</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="s2">&quot;mvax&quot;</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">vmax</span><span class="p">)</span> <span class="ow">not</span> <span class="ow">in</span> <span class="p">(</span><span class="nb">int</span><span class="p">,</span> <span class="nb">float</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;The provided max value must be scalar type.&quot;</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>
<span class="n">vmax</span> <span class="o">=</span> <span class="nb">float</span><span class="p">(</span><span class="n">vmax</span><span class="p">)</span>
<span class="k">except</span> <span class="ne">ValueError</span> <span class="k">as</span> <span class="n">err</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;The provided max value must be scalar type.&quot;</span><span class="p">)</span>

<span class="n">alpha</span> <span class="o">=</span> <span class="n">vis_params</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;opacity&quot;</span><span class="p">,</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="s2">&quot;alpha&quot;</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">alpha</span><span class="p">)</span> <span class="ow">not</span> <span class="ow">in</span> <span class="p">(</span><span class="nb">int</span><span class="p">,</span> <span class="nb">float</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;The provided opacity or alpha value must be type scalar.&quot;</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>
<span class="n">alpha</span> <span class="o">=</span> <span class="nb">float</span><span class="p">(</span><span class="n">alpha</span><span class="p">)</span>
<span class="k">except</span> <span class="ne">ValueError</span> <span class="k">as</span> <span class="n">err</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;opacity or alpha value must be scalar type.&quot;</span><span class="p">)</span>

<span class="k">if</span> <span class="s2">&quot;palette&quot;</span> <span class="ow">in</span> <span class="n">vis_params</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
<span class="n">hexcodes</span> <span class="o">=</span> <span class="n">common</span><span class="o">.</span><span class="n">to_hex_colors</span><span class="p">(</span><span class="n">common</span><span class="o">.</span><span class="n">check_cmap</span><span class="p">(</span><span class="n">vis_params</span><span class="p">[</span><span class="s2">&quot;palette&quot;</span><span class="p">]))</span>
Expand Down
Loading

0 comments on commit adeb9d1

Please sign in to comment.