Skip to content

Commit

Permalink
deploy: ebaf0c2
Browse files Browse the repository at this point in the history
  • Loading branch information
7yl4r committed Dec 16, 2024
1 parent ac172ce commit 4c1e1ca
Show file tree
Hide file tree
Showing 20 changed files with 60 additions and 42 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 records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 55c4b05eb3d65a4d66700f88c4b57e3f
config: dd9bf10d46465096c9b32fd9d68a4411
tags: 645f666f9bcd5a90fca523b33c5a78b7
4 changes: 2 additions & 2 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &mdash; pyobis 1.4.1.dev83+gba2f8fa documentation</title>
<title>Overview: module code &mdash; pyobis 1.4.1.dev87+gebaf0c2 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=e59714d7" />


<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=fc9f9f14"></script>
<script src="../_static/documentation_options.js?v=f3ee7e3c"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions _modules/pyobis/checklist/checklist.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pyobis.checklist.checklist &mdash; pyobis 1.4.1.dev83+gba2f8fa documentation</title>
<title>pyobis.checklist.checklist &mdash; pyobis 1.4.1.dev87+gebaf0c2 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=e59714d7" />


<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=fc9f9f14"></script>
<script src="../../../_static/documentation_options.js?v=f3ee7e3c"></script>
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions _modules/pyobis/dataset/dataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pyobis.dataset.dataset &mdash; pyobis 1.4.1.dev83+gba2f8fa documentation</title>
<title>pyobis.dataset.dataset &mdash; pyobis 1.4.1.dev87+gebaf0c2 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=e59714d7" />


<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=fc9f9f14"></script>
<script src="../../../_static/documentation_options.js?v=f3ee7e3c"></script>
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions _modules/pyobis/nodes/nodes.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pyobis.nodes.nodes &mdash; pyobis 1.4.1.dev83+gba2f8fa documentation</title>
<title>pyobis.nodes.nodes &mdash; pyobis 1.4.1.dev87+gebaf0c2 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=e59714d7" />


<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=fc9f9f14"></script>
<script src="../../../_static/documentation_options.js?v=f3ee7e3c"></script>
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/js/theme.js"></script>
Expand Down
34 changes: 26 additions & 8 deletions _modules/pyobis/occurrences/occurrences.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pyobis.occurrences.occurrences &mdash; pyobis 1.4.1.dev83+gba2f8fa documentation</title>
<title>pyobis.occurrences.occurrences &mdash; pyobis 1.4.1.dev87+gebaf0c2 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=e59714d7" />


<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=fc9f9f14"></script>
<script src="../../../_static/documentation_options.js?v=f3ee7e3c"></script>
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/js/theme.js"></script>
Expand Down Expand Up @@ -209,7 +209,7 @@ <h1>Source code for pyobis.occurrences.occurrences</h1><div class="highlight"><p
<span class="p">)</span>
<span class="n">outdf</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">concat</span><span class="p">(</span>
<span class="p">[</span>
<span class="n">outdf</span><span class="o">.</span><span class="n">infer_objects</span><span class="p">(),</span>
<span class="n">outdf</span> <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">outdf</span><span class="p">)</span> <span class="k">else</span> <span class="kc">None</span><span class="p">,</span>
<span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">(</span><span class="n">res</span><span class="p">[</span><span class="s2">&quot;results&quot;</span><span class="p">])</span><span class="o">.</span><span class="n">infer_objects</span><span class="p">(),</span>
<span class="p">],</span>
<span class="n">ignore_index</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
Expand All @@ -236,7 +236,10 @@ <h1>Source code for pyobis.occurrences.occurrences</h1><div class="highlight"><p
<span class="o">**</span><span class="n">kwargs</span><span class="p">,</span>
<span class="p">)</span>
<span class="n">outdf</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">concat</span><span class="p">(</span>
<span class="p">[</span><span class="n">outdf</span><span class="o">.</span><span class="n">infer_objects</span><span class="p">(),</span> <span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">(</span><span class="n">res</span><span class="p">[</span><span class="s2">&quot;results&quot;</span><span class="p">])</span><span class="o">.</span><span class="n">infer_objects</span><span class="p">()],</span>
<span class="p">[</span>
<span class="n">outdf</span> <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">outdf</span><span class="p">)</span> <span class="k">else</span> <span class="kc">None</span><span class="p">,</span>
<span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">(</span><span class="n">res</span><span class="p">[</span><span class="s2">&quot;results&quot;</span><span class="p">])</span><span class="o">.</span><span class="n">infer_objects</span><span class="p">(),</span>
<span class="p">],</span>
<span class="n">ignore_index</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
<span class="p">)</span>
<span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Fetched </span><span class="si">{</span><span class="n">size</span><span class="si">}</span><span class="s2"> records.&quot;</span><span class="p">)</span>
Expand All @@ -253,16 +256,31 @@ <h1>Source code for pyobis.occurrences.occurrences</h1><div class="highlight"><p
<span class="n">on</span><span class="o">=</span><span class="s2">&quot;id&quot;</span><span class="p">,</span>
<span class="n">how</span><span class="o">=</span><span class="s2">&quot;inner&quot;</span><span class="p">,</span>
<span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">data</span> <span class="o">=</span> <span class="n">merged</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">data</span>
<span class="bp">self</span><span class="o">.</span><span class="n">data</span> <span class="o">=</span> <span class="n">outdf</span>
<span class="bp">self</span><span class="o">.</span><span class="n">data</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;total&quot;</span><span class="p">:</span> <span class="nb">len</span><span class="p">(</span><span class="n">merged</span><span class="p">),</span> <span class="s2">&quot;results&quot;</span><span class="p">:</span> <span class="n">merged</span><span class="p">}</span>
<span class="c1"># set the data as [total, results] K-V pair</span>
<span class="c1"># but still return the DataFrame since changing this</span>
<span class="c1"># will impact existing usage, and be a breaking change</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">data</span><span class="p">[</span><span class="s2">&quot;results&quot;</span><span class="p">]</span>
<span class="bp">self</span><span class="o">.</span><span class="n">data</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;total&quot;</span><span class="p">:</span> <span class="nb">len</span><span class="p">(</span><span class="n">outdf</span><span class="p">),</span> <span class="s2">&quot;results&quot;</span><span class="p">:</span> <span class="n">outdf</span><span class="p">}</span>

<span class="c1"># again for not MeasurementOrFacts results, (simple search queries)</span>
<span class="c1"># should also return the DataFrame directly for backward compatibility</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">data</span><span class="p">[</span><span class="s2">&quot;results&quot;</span><span class="p">]</span>

<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">data</span>

<span class="k">def</span> <span class="nf">to_pandas</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Convert the results into a pandas DataFrame</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># if the data format of the query executed cannot be converted to a</span>
<span class="c1"># pandas.DataFrame which is true for other formats like .mvt or kml (not geojson)</span>
<span class="c1"># then we should be raising a not implemented rather relying around exceptions</span>
<span class="c1"># from pandas while converting</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">__isKML</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span>
<span class="s2">&quot;to_pandas method is not yet available for these query types.&quot;</span><span class="p">,</span>
<span class="p">)</span>
<span class="k">return</span> <span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">data</span><span class="p">[</span><span class="s2">&quot;results&quot;</span><span class="p">])</span></div>


Expand Down Expand Up @@ -486,7 +504,7 @@ <h1>Source code for pyobis.occurrences.occurrences</h1><div class="highlight"><p
<span class="sd"> from pyobis import occurrences</span>

<span class="sd"> occurrences.grid(100, True) // returns in GeoJSON format</span>
<span class="sd"> ococcurrences.grid(1000, False) // returns in KML format</span>
<span class="sd"> occurrences.grid(1000, False) // returns in KML format</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">url</span> <span class="o">=</span> <span class="n">obis_baseurl</span> <span class="o">+</span> <span class="s2">&quot;occurrence/grid/&quot;</span> <span class="o">+</span> <span class="nb">str</span><span class="p">(</span><span class="n">precision</span><span class="p">)</span>
<span class="n">scientificname</span> <span class="o">=</span> <span class="n">handle_arrstr</span><span class="p">(</span><span class="n">scientificname</span><span class="p">)</span>
Expand Down
4 changes: 2 additions & 2 deletions _modules/pyobis/taxa/taxa.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pyobis.taxa.taxa &mdash; pyobis 1.4.1.dev83+gba2f8fa documentation</title>
<title>pyobis.taxa.taxa &mdash; pyobis 1.4.1.dev87+gebaf0c2 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=e59714d7" />


<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=fc9f9f14"></script>
<script src="../../../_static/documentation_options.js?v=f3ee7e3c"></script>
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/js/theme.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion _static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const DOCUMENTATION_OPTIONS = {
VERSION: '1.4.1.dev83+gba2f8fa',
VERSION: '1.4.1.dev87+gebaf0c2',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
4 changes: 2 additions & 2 deletions changelog_link.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Changelog &mdash; pyobis 1.4.1.dev83+gba2f8fa documentation</title>
<title>Changelog &mdash; pyobis 1.4.1.dev87+gebaf0c2 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />


<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=fc9f9f14"></script>
<script src="_static/documentation_options.js?v=f3ee7e3c"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions checklist.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>checklist module &mdash; pyobis 1.4.1.dev83+gba2f8fa documentation</title>
<title>checklist module &mdash; pyobis 1.4.1.dev87+gebaf0c2 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />


<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=fc9f9f14"></script>
<script src="_static/documentation_options.js?v=f3ee7e3c"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions dataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dataset module &mdash; pyobis 1.4.1.dev83+gba2f8fa documentation</title>
<title>dataset module &mdash; pyobis 1.4.1.dev87+gebaf0c2 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />


<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=fc9f9f14"></script>
<script src="_static/documentation_options.js?v=f3ee7e3c"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Index &mdash; pyobis 1.4.1.dev83+gba2f8fa documentation</title>
<title>Index &mdash; pyobis 1.4.1.dev87+gebaf0c2 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />


<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=fc9f9f14"></script>
<script src="_static/documentation_options.js?v=f3ee7e3c"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pyobis &mdash; pyobis 1.4.1.dev83+gba2f8fa documentation</title>
<title>pyobis &mdash; pyobis 1.4.1.dev87+gebaf0c2 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />


<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=fc9f9f14"></script>
<script src="_static/documentation_options.js?v=f3ee7e3c"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="_static/js/theme.js"></script>
Expand Down
Loading

0 comments on commit 4c1e1ca

Please sign in to comment.