Skip to content

Commit

Permalink
Restructure API docs for integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
stes committed Oct 29, 2023
1 parent f0fe607 commit 78afc34
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 16 deletions.
17 changes: 16 additions & 1 deletion cebra/data/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,22 @@
# Please see LICENSE.md for the full license document:
# https://github.com/AdaptiveMotorControlLab/CEBRA/LICENSE.md
#
"""A simple API for loading various data formats used with CEBRA."""
"""A simple API for loading various data formats used with CEBRA.
Availability of different data formats depends on the installed
depedencies. If a dependency is not installed, an attempt to load
a file of that format will throw an error with further installation
instructions.
Currently available formats:
- HDF5 via ``h5py``
- Pickle files via ``pickle``
- Joblib files via ``joblib``
- Various dataframe formats via ``pandas``.
- Matlab files via ``scipy.io.loadmat``
- DeepLabCut (single animal) files via ``deeplabcut``
"""

import abc
import pathlib
Expand Down
9 changes: 9 additions & 0 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,14 @@ these components in other contexts and research code bases.
api/pytorch/integrations
api/pytorch/helpers

.. toctree::
:hidden:
:caption: Integrations

api/integrations/data
api/integrations/matplotlib
api/integrations/plotly
api/integrations/deeplabcut


.. _Scikit-learn estimators: https://scikit-learn.org/stable/developers/develop.html
6 changes: 6 additions & 0 deletions docs/source/api/integrations/data.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Data Loading
------------

.. automodule:: cebra.data.load
:show-inheritance:
:members:
8 changes: 8 additions & 0 deletions docs/source/api/integrations/deeplabcut.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
DeepLabCut
----------

.. automodule:: cebra.integrations.deeplabcut
:show-inheritance:
:members:


7 changes: 7 additions & 0 deletions docs/source/api/integrations/matplotlib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Plotting with ``matplotlib``
----------------------------

.. automodule:: cebra.integrations.matplotlib
:show-inheritance:
:members:

7 changes: 7 additions & 0 deletions docs/source/api/integrations/plotly.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Plotting with ``plotly``
----------------------------

.. automodule:: cebra.integrations.plotly
:show-inheritance:
:members:

8 changes: 0 additions & 8 deletions docs/source/api/pytorch/helpers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ Registry
:show-inheritance:


Plots
-----

.. automodule:: cebra.integrations.matplotlib
:show-inheritance:
:members:


Grid-Search
-----------

Expand Down
7 changes: 0 additions & 7 deletions docs/source/api/pytorch/integrations.rst

This file was deleted.

0 comments on commit 78afc34

Please sign in to comment.