Skip to content

Commit

Permalink
deploy: 7186305
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Oct 9, 2023
1 parent 1cede7e commit a00f8b0
Show file tree
Hide file tree
Showing 149 changed files with 1,949 additions and 1,554 deletions.
Binary file modified .doctrees/accessing-data.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.Attachment.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.Column.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.Database.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.Media.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.MiscTable.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.Rater.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.Scheme.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.Split.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.Table.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.define.DataType.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.define.Gender.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.define.IndexField.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.define.IndexType.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.define.License.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.define.MediaType.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.define.RaterType.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.define.SplitType.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.define.TableStorageFormat.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.define.Usage.doctree
Binary file not shown.
Binary file modified .doctrees/api/audformat.testing.create_audio_files.doctree
Binary file not shown.
Binary file modified .doctrees/changelog.doctree
Binary file not shown.
Binary file modified .doctrees/combine-tables.doctree
Binary file not shown.
Binary file modified .doctrees/contributing.doctree
Binary file not shown.
Binary file modified .doctrees/data-example.doctree
Binary file not shown.
Binary file modified .doctrees/emodb-example.doctree
Binary file not shown.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/index.doctree
Binary file not shown.
Binary file modified .doctrees/map-scheme.doctree
Binary file not shown.
Binary file modified .doctrees/update-database.doctree
Binary file not shown.
12 changes: 5 additions & 7 deletions _modules/audformat/core/attachment.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<link rel="stylesheet" href="../../../_static/copybutton.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/jupyter-sphinx.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/thebelab.css" type="text/css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].4/dist/katex.min.css" type="text/css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].8/dist/katex.min.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/katex-math.css" type="text/css" />
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
Expand Down Expand Up @@ -70,7 +70,7 @@


<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -169,10 +169,8 @@ <h1>Source code for audformat.core.attachment</h1><div class="highlight"><pre>

<span class="kn">import</span> <span class="nn">audeer</span>

<span class="kn">from</span> <span class="nn">audformat.core.common</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">HeaderBase</span><span class="p">,</span>
<span class="n">is_relative_path</span><span class="p">,</span>
<span class="p">)</span>
<span class="kn">from</span> <span class="nn">audformat.core.common</span> <span class="kn">import</span> <span class="n">HeaderBase</span>
<span class="kn">from</span> <span class="nn">audformat.core.common</span> <span class="kn">import</span> <span class="n">is_relative_path</span>


<div class="viewcode-block" id="Attachment"><a class="viewcode-back" href="../../../api/audformat.Attachment.html#audformat.Attachment">[docs]</a><span class="k">class</span> <span class="nc">Attachment</span><span class="p">(</span><span class="n">HeaderBase</span><span class="p">):</span>
Expand Down Expand Up @@ -339,7 +337,7 @@ <h1>Source code for audformat.core.attachment</h1><div class="highlight"><pre>



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>
Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/10/09 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
20 changes: 10 additions & 10 deletions _modules/audformat/core/column.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<link rel="stylesheet" href="../../../_static/copybutton.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/jupyter-sphinx.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/thebelab.css" type="text/css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].4/dist/katex.min.css" type="text/css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].8/dist/katex.min.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/katex-math.css" type="text/css" />
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
Expand Down Expand Up @@ -70,7 +70,7 @@


<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -174,14 +174,13 @@ <h1>Source code for audformat.core.column</h1><div class="highlight"><pre>

<span class="kn">from</span> <span class="nn">audformat.core</span> <span class="kn">import</span> <span class="n">define</span>
<span class="kn">from</span> <span class="nn">audformat.core.common</span> <span class="kn">import</span> <span class="n">HeaderBase</span>
<span class="kn">from</span> <span class="nn">audformat.core.index</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">index_type</span><span class="p">,</span>
<span class="n">is_scalar</span><span class="p">,</span>
<span class="n">to_array</span><span class="p">,</span>
<span class="p">)</span>
<span class="kn">from</span> <span class="nn">audformat.core.index</span> <span class="kn">import</span> <span class="n">index_type</span>
<span class="kn">from</span> <span class="nn">audformat.core.index</span> <span class="kn">import</span> <span class="n">is_scalar</span>
<span class="kn">from</span> <span class="nn">audformat.core.index</span> <span class="kn">import</span> <span class="n">to_array</span>
<span class="kn">from</span> <span class="nn">audformat.core.rater</span> <span class="kn">import</span> <span class="n">Rater</span>
<span class="kn">from</span> <span class="nn">audformat.core.typing</span> <span class="kn">import</span> <span class="n">Values</span>


<span class="k">if</span> <span class="n">typing</span><span class="o">.</span><span class="n">TYPE_CHECKING</span><span class="p">:</span>
<span class="c1"># Fix to make mypy work without circular imports,</span>
<span class="c1"># compare</span>
Expand Down Expand Up @@ -527,15 +526,16 @@ <h1>Source code for audformat.core.column</h1><div class="highlight"><pre>
<span class="n">dtype</span><span class="o">=</span><span class="n">dtype</span><span class="p">,</span>
<span class="p">)</span></div>

<span class="k">def</span> <span class="fm">__eq__</span><span class="p">(</span>
<div class="viewcode-block" id="Column.__eq__"><a class="viewcode-back" href="../../../api/audformat.Column.html#audformat.Column.__eq__">[docs]</a> <span class="k">def</span> <span class="fm">__eq__</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span>
<span class="n">other</span><span class="p">:</span> <span class="s1">&#39;Column&#39;</span><span class="p">,</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
<span class="w"> </span><span class="sa">r</span><span class="sd">&quot;&quot;&quot;Compare if column equals another column.&quot;&quot;&quot;</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">dump</span><span class="p">()</span> <span class="o">!=</span> <span class="n">other</span><span class="o">.</span><span class="n">dump</span><span class="p">():</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_table</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span> <span class="ow">and</span> <span class="n">other</span><span class="o">.</span><span class="n">_table</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_table</span><span class="o">.</span><span class="n">df</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">_id</span><span class="p">]</span><span class="o">.</span><span class="n">equals</span><span class="p">(</span><span class="n">other</span><span class="o">.</span><span class="n">_table</span><span class="o">.</span><span class="n">df</span><span class="p">[</span><span class="n">other</span><span class="o">.</span><span class="n">_id</span><span class="p">])</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_table</span> <span class="ow">is</span> <span class="kc">None</span> <span class="ow">and</span> <span class="n">other</span><span class="o">.</span><span class="n">_table</span> <span class="ow">is</span> <span class="kc">None</span></div>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_table</span> <span class="ow">is</span> <span class="kc">None</span> <span class="ow">and</span> <span class="n">other</span><span class="o">.</span><span class="n">_table</span> <span class="ow">is</span> <span class="kc">None</span></div></div>
</pre></div>

</div>
Expand All @@ -551,7 +551,7 @@ <h1>Source code for audformat.core.column</h1><div class="highlight"><pre>



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>
Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/10/09 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
41 changes: 19 additions & 22 deletions _modules/audformat/core/database.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<link rel="stylesheet" href="../../../_static/copybutton.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/jupyter-sphinx.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/thebelab.css" type="text/css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].4/dist/katex.min.css" type="text/css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].8/dist/katex.min.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/katex-math.css" type="text/css" />
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
Expand Down Expand Up @@ -70,7 +70,7 @@


<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -171,6 +171,8 @@ <h1>Source code for audformat.core.database</h1><div class="highlight"><pre>
<span class="kn">import</span> <span class="nn">typing</span>

<span class="kn">import</span> <span class="nn">oyaml</span> <span class="k">as</span> <span class="nn">yaml</span>


<span class="k">try</span><span class="p">:</span>
<span class="kn">from</span> <span class="nn">yaml</span> <span class="kn">import</span> <span class="n">CLoader</span> <span class="k">as</span> <span class="n">Loader</span>
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span> <span class="c1"># pragma: nocover</span>
Expand All @@ -184,24 +186,18 @@ <h1>Source code for audformat.core.database</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">audformat.core</span> <span class="kn">import</span> <span class="n">utils</span>
<span class="kn">from</span> <span class="nn">audformat.core.attachment</span> <span class="kn">import</span> <span class="n">Attachment</span>
<span class="kn">from</span> <span class="nn">audformat.core.column</span> <span class="kn">import</span> <span class="n">Column</span>
<span class="kn">from</span> <span class="nn">audformat.core.common</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">is_relative_path</span><span class="p">,</span>
<span class="n">HeaderBase</span><span class="p">,</span>
<span class="n">HeaderDict</span><span class="p">,</span>
<span class="p">)</span>
<span class="kn">from</span> <span class="nn">audformat.core.errors</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">BadKeyError</span><span class="p">,</span>
<span class="n">BadIdError</span><span class="p">,</span>
<span class="n">TableExistsError</span><span class="p">,</span>
<span class="p">)</span>
<span class="kn">from</span> <span class="nn">audformat.core.common</span> <span class="kn">import</span> <span class="n">HeaderBase</span>
<span class="kn">from</span> <span class="nn">audformat.core.common</span> <span class="kn">import</span> <span class="n">HeaderDict</span>
<span class="kn">from</span> <span class="nn">audformat.core.common</span> <span class="kn">import</span> <span class="n">is_relative_path</span>
<span class="kn">from</span> <span class="nn">audformat.core.errors</span> <span class="kn">import</span> <span class="n">BadIdError</span>
<span class="kn">from</span> <span class="nn">audformat.core.errors</span> <span class="kn">import</span> <span class="n">BadKeyError</span>
<span class="kn">from</span> <span class="nn">audformat.core.errors</span> <span class="kn">import</span> <span class="n">TableExistsError</span>
<span class="kn">from</span> <span class="nn">audformat.core.media</span> <span class="kn">import</span> <span class="n">Media</span>
<span class="kn">from</span> <span class="nn">audformat.core.rater</span> <span class="kn">import</span> <span class="n">Rater</span>
<span class="kn">from</span> <span class="nn">audformat.core.scheme</span> <span class="kn">import</span> <span class="n">Scheme</span>
<span class="kn">from</span> <span class="nn">audformat.core.split</span> <span class="kn">import</span> <span class="n">Split</span>
<span class="kn">from</span> <span class="nn">audformat.core.table</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">MiscTable</span><span class="p">,</span>
<span class="n">Table</span><span class="p">,</span>
<span class="p">)</span>
<span class="kn">from</span> <span class="nn">audformat.core.table</span> <span class="kn">import</span> <span class="n">MiscTable</span>
<span class="kn">from</span> <span class="nn">audformat.core.table</span> <span class="kn">import</span> <span class="n">Table</span>


<div class="viewcode-block" id="Database"><a class="viewcode-back" href="../../../api/audformat.Database.html#audformat.Database">[docs]</a><span class="k">class</span> <span class="nc">Database</span><span class="p">(</span><span class="n">HeaderBase</span><span class="p">):</span>
Expand Down Expand Up @@ -824,7 +820,6 @@ <h1>Source code for audformat.core.database</h1><div class="highlight"><pre>
<span class="sd"> RuntimeError: if any involved database is not portable</span>

<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">others</span><span class="p">,</span> <span class="n">Database</span><span class="p">):</span>
<span class="n">others</span> <span class="o">=</span> <span class="p">[</span><span class="n">others</span><span class="p">]</span>

Expand Down Expand Up @@ -1065,21 +1060,23 @@ <h1>Source code for audformat.core.database</h1><div class="highlight"><pre>
<span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">tables</span><span class="p">)</span> <span class="o">+</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">misc_tables</span><span class="p">),</span>
<span class="p">)</span></div>

<span class="k">def</span> <span class="fm">__eq__</span><span class="p">(</span>
<div class="viewcode-block" id="Database.__eq__"><a class="viewcode-back" href="../../../api/audformat.Database.html#audformat.Database.__eq__">[docs]</a> <span class="k">def</span> <span class="fm">__eq__</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span>
<span class="n">other</span><span class="p">:</span> <span class="s1">&#39;Database&#39;</span><span class="p">,</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
<span class="w"> </span><span class="sa">r</span><span class="sd">&quot;&quot;&quot;Comparison if database equals another database.&quot;&quot;&quot;</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">dump</span><span class="p">()</span> <span class="o">!=</span> <span class="n">other</span><span class="o">.</span><span class="n">dump</span><span class="p">():</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">for</span> <span class="n">table_id</span> <span class="ow">in</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">tables</span><span class="p">)</span> <span class="o">+</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">misc_tables</span><span class="p">):</span>
<span class="k">if</span> <span class="bp">self</span><span class="p">[</span><span class="n">table_id</span><span class="p">]</span> <span class="o">!=</span> <span class="n">other</span><span class="p">[</span><span class="n">table_id</span><span class="p">]:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">return</span> <span class="kc">True</span>
<span class="k">return</span> <span class="kc">True</span></div>

<span class="k">def</span> <span class="fm">__iter__</span><span class="p">(</span>
<div class="viewcode-block" id="Database.__iter__"><a class="viewcode-back" href="../../../api/audformat.Database.html#audformat.Database.__iter__">[docs]</a> <span class="k">def</span> <span class="fm">__iter__</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">typing</span><span class="o">.</span><span class="n">Union</span><span class="p">[</span><span class="n">MiscTable</span><span class="p">,</span> <span class="n">Table</span><span class="p">]:</span>
<span class="k">yield from</span> <span class="nb">sorted</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">tables</span><span class="p">)</span> <span class="o">+</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">misc_tables</span><span class="p">))</span>
<span class="w"> </span><span class="sa">r</span><span class="sd">&quot;&quot;&quot;Iterate over (miscellaneous) tables of database.&quot;&quot;&quot;</span>
<span class="k">yield from</span> <span class="nb">sorted</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">tables</span><span class="p">)</span> <span class="o">+</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">misc_tables</span><span class="p">))</span></div>

<div class="viewcode-block" id="Database.__setitem__"><a class="viewcode-back" href="../../../api/audformat.Database.html#audformat.Database.__setitem__">[docs]</a> <span class="k">def</span> <span class="fm">__setitem__</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span>
Expand Down Expand Up @@ -1382,7 +1379,7 @@ <h1>Source code for audformat.core.database</h1><div class="highlight"><pre>



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>
Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/10/09 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
Loading

0 comments on commit a00f8b0

Please sign in to comment.