Skip to content

Commit

Permalink
deploy: d20e70f
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed May 8, 2023
1 parent 96d3705 commit 1cede7e
Show file tree
Hide file tree
Showing 104 changed files with 930 additions and 908 deletions.
Binary file modified .doctrees/accessing-data.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/data-example.doctree
Binary file not shown.
Binary file modified .doctrees/environment.pickle
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.
4 changes: 2 additions & 2 deletions _modules/audformat/core/attachment.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


Expand Down Expand Up @@ -339,7 +339,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/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _modules/audformat/core/column.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


Expand Down Expand Up @@ -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/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _modules/audformat/core/database.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


Expand Down Expand Up @@ -1382,7 +1382,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/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _modules/audformat/core/define.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


Expand Down Expand Up @@ -555,7 +555,7 @@ <h1>Source code for audformat.core.define</h1><div class="highlight"><pre>



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _modules/audformat/core/errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


Expand Down Expand Up @@ -268,7 +268,7 @@ <h1>Source code for audformat.core.errors</h1><div class="highlight"><pre>



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _modules/audformat/core/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


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



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _modules/audformat/core/media.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


Expand Down Expand Up @@ -257,7 +257,7 @@ <h1>Source code for audformat.core.media</h1><div class="highlight"><pre>



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _modules/audformat/core/rater.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


Expand Down Expand Up @@ -213,7 +213,7 @@ <h1>Source code for audformat.core.rater</h1><div class="highlight"><pre>



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _modules/audformat/core/scheme.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


Expand Down Expand Up @@ -700,7 +700,7 @@ <h1>Source code for audformat.core.scheme</h1><div class="highlight"><pre>



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _modules/audformat/core/split.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


Expand Down Expand Up @@ -215,7 +215,7 @@ <h1>Source code for audformat.core.split</h1><div class="highlight"><pre>



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _modules/audformat/core/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


Expand Down Expand Up @@ -1798,7 +1798,7 @@ <h1>Source code for audformat.core.table</h1><div class="highlight"><pre>



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _modules/audformat/core/testing.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


Expand Down Expand Up @@ -674,7 +674,7 @@ <h1>Source code for audformat.core.testing</h1><div class="highlight"><pre>



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
17 changes: 14 additions & 3 deletions _modules/audformat/core/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


Expand Down Expand Up @@ -1755,6 +1755,9 @@ <h1>Source code for audformat.core.utils</h1><div class="highlight"><pre>

<span class="k">if</span> <span class="nb">any</span><span class="p">(</span><span class="n">has_nat</span><span class="p">):</span>

<span class="c1"># Gather duration values</span>
<span class="c1"># for all NaT end entries</span>

<span class="n">idx_nat</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">where</span><span class="p">(</span><span class="n">has_nat</span><span class="p">)[</span><span class="mi">0</span><span class="p">]</span>
<span class="n">files</span> <span class="o">=</span> <span class="n">index</span><span class="o">.</span><span class="n">get_level_values</span><span class="p">(</span><span class="n">define</span><span class="o">.</span><span class="n">IndexField</span><span class="o">.</span><span class="n">FILE</span><span class="p">)</span>
<span class="n">starts</span> <span class="o">=</span> <span class="n">index</span><span class="o">.</span><span class="n">get_level_values</span><span class="p">(</span><span class="n">define</span><span class="o">.</span><span class="n">IndexField</span><span class="o">.</span><span class="n">START</span><span class="p">)</span>
Expand Down Expand Up @@ -1788,8 +1791,16 @@ <h1>Source code for audformat.core.utils</h1><div class="highlight"><pre>
<span class="n">progress_bar</span><span class="o">=</span><span class="n">verbose</span><span class="p">,</span>
<span class="n">task_description</span><span class="o">=</span><span class="s1">&#39;Read duration&#39;</span><span class="p">,</span>
<span class="p">)</span>
<span class="n">ends</span><span class="o">.</span><span class="n">values</span><span class="p">[</span><span class="n">idx_nat</span><span class="p">]</span> <span class="o">=</span> <span class="n">durs</span>

<span class="c1"># Replace all NaT entries in end</span>
<span class="c1"># by the collected duration values.</span>
<span class="c1"># We have to convert ends to a series first</span>
<span class="c1"># in order to preserve precision of duration values</span>

<span class="n">ends</span> <span class="o">=</span> <span class="n">ends</span><span class="o">.</span><span class="n">to_series</span><span class="p">()</span>
<span class="n">ends</span><span class="p">[</span><span class="n">idx_nat</span><span class="p">]</span> <span class="o">=</span> <span class="n">durs</span>

<span class="c1"># Create a new index</span>
<span class="n">index</span> <span class="o">=</span> <span class="n">segmented_index</span><span class="p">(</span><span class="n">files</span><span class="p">,</span> <span class="n">starts</span><span class="p">,</span> <span class="n">ends</span><span class="p">)</span>

<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">obj</span><span class="p">,</span> <span class="n">pd</span><span class="o">.</span><span class="n">Index</span><span class="p">):</span>
Expand Down Expand Up @@ -2146,7 +2157,7 @@ <h1>Source code for audformat.core.utils</h1><div class="highlight"><pre>



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


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


Expand Down Expand Up @@ -191,7 +191,7 @@ <h1>All modules for which code is available</h1>



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
16 changes: 8 additions & 8 deletions accessing-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@


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


Expand Down Expand Up @@ -232,13 +232,13 @@ <h2>Accessing data<a class="headerlink" href="#accessing-data" title="Permalink
<tbody>
<tr>
<th>audio/001.wav</th>
<td>&lt;NA&gt;</td>
<td>1970-01-01 00:00:00.430</td>
<td>False</td>
<td>1970-01-01 00:00:00.500</td>
</tr>
<tr>
<th>audio/002.wav</th>
<td>&lt;NA&gt;</td>
<td>1970-01-01 00:00:00.620</td>
<td>False</td>
<td>NaT</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -278,11 +278,11 @@ <h2>Accessing data<a class="headerlink" href="#accessing-data" title="Permalink
<tbody>
<tr>
<th>audio/001.wav</th>
<td>NS3Efasu0O</td>
<td>Y3ioKcfHaJ</td>
</tr>
<tr>
<th>audio/002.wav</th>
<td>MtddI3fQgD</td>
<td>ZO4Ezc2436</td>
</tr>
</tbody>
</table></div></div>
Expand Down Expand Up @@ -332,7 +332,7 @@ <h2>Changing referenced files<a class="headerlink" href="#changing-referenced-fi



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions api/audformat.Attachment.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@


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


Expand Down Expand Up @@ -370,7 +370,7 @@ <h2>to_dict()<a class="headerlink" href="#to-dict" title="Permalink to this head



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions api/audformat.Column.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@


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


Expand Down Expand Up @@ -481,7 +481,7 @@ <h2>to_dict()<a class="headerlink" href="#to-dict" title="Permalink to this head



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions api/audformat.Database.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@


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


Expand Down Expand Up @@ -1064,7 +1064,7 @@ <h2>usage<a class="headerlink" href="#usage" title="Permalink to this heading">



Built with <a href="https://www.sphinx-doc.org/en/master/">Sphinx</a> on 2023/04/27 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/05/08 using the <a href="https://github.com/audeering/sphinx-audeering-theme/">audEERING theme</a>

</p>
</div>
Expand Down
Loading

0 comments on commit 1cede7e

Please sign in to comment.