Skip to content

Commit

Permalink
deploy: 1d4aba5
Browse files Browse the repository at this point in the history
  • Loading branch information
niksirbi committed Oct 12, 2023
1 parent 542dba5 commit 323b212
Show file tree
Hide file tree
Showing 40 changed files with 101 additions and 98 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 hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 83fc8b3d93aabf933981e660f670aecf
config: f3accd61f28ed912573026661e4390b3
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified .doctrees/auto_examples/load_and_explore_poses.doctree
Binary file not shown.
Binary file modified .doctrees/auto_examples/sg_execution_times.doctree
Binary file not shown.
Binary file modified .doctrees/contributing.doctree
Binary file not shown.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="../_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>

<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=cc9a0d3a"></script>
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=6eedfc7d"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
<script src="../_static/design-tabs.js?v=36754332"></script>
Expand Down Expand Up @@ -119,7 +119,7 @@



<p class="title logo__title">movement v0.0.7</p>
<p class="title logo__title">movement v0.0.8</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions _modules/movement/datasets.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="../../_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>

<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js?v=cc9a0d3a"></script>
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js?v=6eedfc7d"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=4825356b"></script>
<script src="../../_static/design-tabs.js?v=36754332"></script>
Expand Down Expand Up @@ -119,7 +119,7 @@



<p class="title logo__title">movement v0.0.7</p>
<p class="title logo__title">movement v0.0.8</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions _modules/movement/io/load_poses.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../../../_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="../../../_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>

<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js?v=cc9a0d3a"></script>
<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js?v=6eedfc7d"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=4825356b"></script>
<script src="../../../_static/design-tabs.js?v=36754332"></script>
Expand Down Expand Up @@ -119,7 +119,7 @@



<p class="title logo__title">movement v0.0.7</p>
<p class="title logo__title">movement v0.0.8</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions _modules/movement/io/save_poses.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../../../_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="../../../_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>

<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js?v=cc9a0d3a"></script>
<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js?v=6eedfc7d"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=4825356b"></script>
<script src="../../../_static/design-tabs.js?v=36754332"></script>
Expand Down Expand Up @@ -119,7 +119,7 @@



<p class="title logo__title">movement v0.0.7</p>
<p class="title logo__title">movement v0.0.8</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions _modules/movement/io/validators.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../../../_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="../../../_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>

<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js?v=cc9a0d3a"></script>
<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js?v=6eedfc7d"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=4825356b"></script>
<script src="../../../_static/design-tabs.js?v=36754332"></script>
Expand Down Expand Up @@ -119,7 +119,7 @@



<p class="title logo__title">movement v0.0.7</p>
<p class="title logo__title">movement v0.0.8</p>

</a></div>

Expand Down
53 changes: 28 additions & 25 deletions _modules/movement/logging.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="../../_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>

<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js?v=cc9a0d3a"></script>
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js?v=6eedfc7d"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=4825356b"></script>
<script src="../../_static/design-tabs.js?v=36754332"></script>
Expand Down Expand Up @@ -119,7 +119,7 @@



<p class="title logo__title">movement v0.0.7</p>
<p class="title logo__title">movement v0.0.8</p>

</a></div>

Expand Down Expand Up @@ -411,34 +411,37 @@ <h1>Source code for movement.logging</h1><div class="highlight"><pre>

<span class="c1"># Set the log directory and file path</span>
<span class="n">log_directory</span><span class="o">.</span><span class="n">mkdir</span><span class="p">(</span><span class="n">parents</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">exist_ok</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">log_file</span> <span class="o">=</span> <span class="n">log_directory</span> <span class="o">/</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">logger_name</span><span class="si">}</span><span class="s2">.log&quot;</span>

<span class="c1"># If a logger with the given name is already configured</span>
<span class="k">if</span> <span class="n">logger_name</span> <span class="ow">in</span> <span class="n">logging</span><span class="o">.</span><span class="n">root</span><span class="o">.</span><span class="n">manager</span><span class="o">.</span><span class="n">loggerDict</span><span class="p">:</span>
<span class="n">logger</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLogger</span><span class="p">(</span><span class="n">logger_name</span><span class="p">)</span>
<span class="n">handlers</span> <span class="o">=</span> <span class="n">logger</span><span class="o">.</span><span class="n">handlers</span><span class="p">[:]</span>
<span class="c1"># If the log file path has changed</span>
<span class="k">if</span> <span class="n">log_file</span><span class="o">.</span><span class="n">as_posix</span><span class="p">()</span> <span class="o">!=</span> <span class="n">handlers</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">baseFilename</span><span class="p">:</span> <span class="c1"># type: ignore</span>
<span class="c1"># remove the handlers to allow for reconfiguration</span>
<span class="k">for</span> <span class="n">handler</span> <span class="ow">in</span> <span class="n">handlers</span><span class="p">:</span>
<span class="n">logger</span><span class="o">.</span><span class="n">removeHandler</span><span class="p">(</span><span class="n">handler</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="c1"># otherwise, do nothing</span>
<span class="k">return</span>
<span class="n">log_file</span> <span class="o">=</span> <span class="p">(</span><span class="n">log_directory</span> <span class="o">/</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">logger_name</span><span class="si">}</span><span class="s2">.log&quot;</span><span class="p">)</span><span class="o">.</span><span class="n">as_posix</span><span class="p">()</span>

<span class="c1"># Check if logger with the given name is already configured</span>
<span class="n">logger_configured</span> <span class="o">=</span> <span class="n">logger_name</span> <span class="ow">in</span> <span class="n">logging</span><span class="o">.</span><span class="n">root</span><span class="o">.</span><span class="n">manager</span><span class="o">.</span><span class="n">loggerDict</span>

<span class="n">logger</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLogger</span><span class="p">(</span><span class="n">logger_name</span><span class="p">)</span>
<span class="n">logger</span><span class="o">.</span><span class="n">setLevel</span><span class="p">(</span><span class="n">log_level</span><span class="p">)</span>

<span class="c1"># Create a rotating file handler</span>
<span class="n">max_log_size</span> <span class="o">=</span> <span class="mi">5</span> <span class="o">*</span> <span class="mi">1024</span> <span class="o">*</span> <span class="mi">1024</span> <span class="c1"># 5 MB</span>
<span class="n">handler</span> <span class="o">=</span> <span class="n">RotatingFileHandler</span><span class="p">(</span><span class="n">log_file</span><span class="p">,</span> <span class="n">maxBytes</span><span class="o">=</span><span class="n">max_log_size</span><span class="p">)</span>
<span class="c1"># Logger needs to be (re)configured if unconfigured or</span>
<span class="c1"># if configured but the log file path has changed</span>
<span class="n">configure_logger</span> <span class="o">=</span> <span class="p">(</span>
<span class="ow">not</span> <span class="n">logger_configured</span>
<span class="ow">or</span> <span class="n">log_file</span> <span class="o">!=</span> <span class="n">logger</span><span class="o">.</span><span class="n">handlers</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">baseFilename</span> <span class="c1"># type: ignore</span>
<span class="p">)</span>

<span class="k">if</span> <span class="n">configure_logger</span><span class="p">:</span>
<span class="k">if</span> <span class="n">logger_configured</span><span class="p">:</span>
<span class="c1"># remove the handlers to allow for reconfiguration</span>
<span class="n">logger</span><span class="o">.</span><span class="n">handlers</span><span class="o">.</span><span class="n">clear</span><span class="p">()</span>

<span class="n">logger</span><span class="o">.</span><span class="n">setLevel</span><span class="p">(</span><span class="n">log_level</span><span class="p">)</span>

<span class="c1"># Create a rotating file handler</span>
<span class="n">max_log_size</span> <span class="o">=</span> <span class="mi">5</span> <span class="o">*</span> <span class="mi">1024</span> <span class="o">*</span> <span class="mi">1024</span> <span class="c1"># 5 MB</span>
<span class="n">handler</span> <span class="o">=</span> <span class="n">RotatingFileHandler</span><span class="p">(</span><span class="n">log_file</span><span class="p">,</span> <span class="n">maxBytes</span><span class="o">=</span><span class="n">max_log_size</span><span class="p">)</span>

<span class="c1"># Create a formatter and set it to the handler</span>
<span class="n">formatter</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">Formatter</span><span class="p">(</span><span class="n">FORMAT</span><span class="p">)</span>
<span class="n">handler</span><span class="o">.</span><span class="n">setFormatter</span><span class="p">(</span><span class="n">formatter</span><span class="p">)</span>
<span class="c1"># Create a formatter and set it to the handler</span>
<span class="n">formatter</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">Formatter</span><span class="p">(</span><span class="n">FORMAT</span><span class="p">)</span>
<span class="n">handler</span><span class="o">.</span><span class="n">setFormatter</span><span class="p">(</span><span class="n">formatter</span><span class="p">)</span>

<span class="c1"># Add the handler to the logger</span>
<span class="n">logger</span><span class="o">.</span><span class="n">addHandler</span><span class="p">(</span><span class="n">handler</span><span class="p">)</span></div>
<span class="c1"># Add the handler to the logger</span>
<span class="n">logger</span><span class="o">.</span><span class="n">addHandler</span><span class="p">(</span><span class="n">handler</span><span class="p">)</span></div>


<div class="viewcode-block" id="log_error"><a class="viewcode-back" href="../../auto_api/movement.logging.log_error.html#movement.logging.log_error">[docs]</a><span class="k">def</span> <span class="nf">log_error</span><span class="p">(</span><span class="n">error</span><span class="p">,</span> <span class="n">message</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">logger_name</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;movement&quot;</span><span class="p">):</span>
Expand Down
10 changes: 5 additions & 5 deletions _sources/auto_examples/load_and_explore_poses.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ e.g., ``file_path = "/path/to/my/data.h5"``)

.. code-block:: none
0.00B [00:00, ?B/s] 34.8kB [00:00, 246kB/s] 0.00B [00:00, ?B/s] 0.00B [00:00, ?B/s]
0.00B [00:00, ?B/s] 34.8kB [00:00, 253kB/s] 0.00B [00:00, ?B/s] 0.00B [00:00, ?B/s]



Expand Down Expand Up @@ -226,7 +226,7 @@ using ``xarray``'s built-in plotting methods:
.. code-block:: none
<xarray.plot.facetgrid.FacetGrid object at 0x7f2817159c50>
<xarray.plot.facetgrid.FacetGrid object at 0x7fc24ee1e390>
Expand Down Expand Up @@ -257,7 +257,7 @@ for all individuals:
.. code-block:: none
<xarray.plot.facetgrid.FacetGrid object at 0x7f2815d1a350>
<xarray.plot.facetgrid.FacetGrid object at 0x7fc24ea73ad0>
Expand Down Expand Up @@ -301,14 +301,14 @@ For example, we can use ``matplotlib`` to plot trajectories
.. code-block:: none
<matplotlib.colorbar.Colorbar object at 0x7f2813b5f050>
<matplotlib.colorbar.Colorbar object at 0x7fc24b938510>
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 1.595 seconds)
**Total running time of the script:** (0 minutes 1.882 seconds)


.. _sphx_glr_download_auto_examples_load_and_explore_poses.py:
Expand Down
4 changes: 2 additions & 2 deletions _sources/auto_examples/sg_execution_times.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

Computation times
=================
**00:01.595** total execution time for **auto_examples** files:
**00:01.882** total execution time for **auto_examples** files:

+-----------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_auto_examples_load_and_explore_poses.py` (``load_and_explore_poses.py``) | 00:01.595 | 0.0 MB |
| :ref:`sphx_glr_auto_examples_load_and_explore_poses.py` (``load_and_explore_poses.py``) | 00:01.882 | 0.0 MB |
+-----------------------------------------------------------------------------------------+-----------+--------+
2 changes: 1 addition & 1 deletion _static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '0.0.7',
VERSION: '0.0.8',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
4 changes: 2 additions & 2 deletions api_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>

<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js?v=cc9a0d3a"></script>
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js?v=6eedfc7d"></script>
<script src="_static/doctools.js?v=888ff710"></script>
<script src="_static/sphinx_highlight.js?v=4825356b"></script>
<script src="_static/design-tabs.js?v=36754332"></script>
Expand Down Expand Up @@ -122,7 +122,7 @@



<p class="title logo__title">movement v0.0.7</p>
<p class="title logo__title">movement v0.0.8</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions auto_api/movement.datasets.fetch_pose_data_path.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="../_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>

<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=cc9a0d3a"></script>
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=6eedfc7d"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
<script src="../_static/design-tabs.js?v=36754332"></script>
Expand Down Expand Up @@ -122,7 +122,7 @@



<p class="title logo__title">movement v0.0.7</p>
<p class="title logo__title">movement v0.0.8</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions auto_api/movement.datasets.list_pose_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="../_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>

<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=cc9a0d3a"></script>
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=6eedfc7d"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
<script src="../_static/design-tabs.js?v=36754332"></script>
Expand Down Expand Up @@ -122,7 +122,7 @@



<p class="title logo__title">movement v0.0.7</p>
<p class="title logo__title">movement v0.0.8</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions auto_api/movement.io.load_poses.from_dlc_df.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="../_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>

<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=cc9a0d3a"></script>
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=6eedfc7d"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
<script src="../_static/design-tabs.js?v=36754332"></script>
Expand Down Expand Up @@ -122,7 +122,7 @@



<p class="title logo__title">movement v0.0.7</p>
<p class="title logo__title">movement v0.0.8</p>

</a></div>

Expand Down
4 changes: 2 additions & 2 deletions auto_api/movement.io.load_poses.from_dlc_file.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="../_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>

<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=cc9a0d3a"></script>
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=6eedfc7d"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
<script src="../_static/design-tabs.js?v=36754332"></script>
Expand Down Expand Up @@ -122,7 +122,7 @@



<p class="title logo__title">movement v0.0.7</p>
<p class="title logo__title">movement v0.0.8</p>

</a></div>

Expand Down
Loading

0 comments on commit 323b212

Please sign in to comment.