Skip to content

Commit

Permalink
Polish and document API
Browse files Browse the repository at this point in the history
Many, many formerly public classes and functions are now private. This is done to minimize the number of public classes/functions, which after release should be treated as stable APIs that are ideally modified only in backwards compatible ways.

Of those that remain public, some were renamed:

* ``LoadAndPrepareData`` --> ``load_dataset``
* ``setup`` --> ``setup_ftpauth``
* ``MyWritableEpochSource`` --> ``NeuroticWritableEpochSource``
* ``DataExplorer`` --> ``MainWindow``
  • Loading branch information
jpgill86 committed Jul 27, 2019
1 parent 3be2f5e commit bc1f7d0
Show file tree
Hide file tree
Showing 23 changed files with 934 additions and 773 deletions.
38 changes: 38 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.. _api:

API Reference
=============

In addition to using **neurotic** as a standalone app, you can also leverage
its API in your own code.

The core of the API consists of two classes and one function:

* :class:`neurotic.datasets.metadata.MetadataSelector`: Read metadata files, download datasets
* :func:`neurotic.datasets.data.load_dataset`: Read datasets, apply filters and spike detection
* :class:`neurotic.gui.config.EphyviewerConfigurator`: Launch ephyviewer

All public package contents are automatically imported directly into the
``neurotic`` namespace. This means that a class like
``neurotic.datasets.metadata.MetadataSelector`` can be accessed more compactly
as ``neurotic.MetadataSelector``.


.. toctree::
:maxdepth: 1
:caption: Datasets

api/data
api/download
api/ftpauth
api/metadata


.. toctree::
:maxdepth: 1
:caption: GUI

api/config
api/epochencoder
api/notebook
api/standalone
6 changes: 6 additions & 0 deletions docs/api/config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _api-config:

``neurotic.gui.config``
=======================

.. automodule:: neurotic.gui.config
6 changes: 6 additions & 0 deletions docs/api/data.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _api-data:

``neurotic.datasets.data``
==========================

.. automodule:: neurotic.datasets.data
6 changes: 6 additions & 0 deletions docs/api/download.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _api-download:

``neurotic.datasets.download``
==============================

.. automodule:: neurotic.datasets.download
6 changes: 6 additions & 0 deletions docs/api/epochencoder.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _api-epochencoder:

``neurotic.gui.epochencoder``
=============================

.. automodule:: neurotic.gui.epochencoder
6 changes: 6 additions & 0 deletions docs/api/ftpauth.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _api-ftpauth:

``neurotic.datasets.ftpauth``
=============================

.. automodule:: neurotic.datasets.ftpauth
6 changes: 6 additions & 0 deletions docs/api/metadata.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _api-metadata:

``neurotic.datasets.metadata``
==============================

.. automodule:: neurotic.datasets.metadata
6 changes: 6 additions & 0 deletions docs/api/notebook.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _api-notebook:

``neurotic.gui.notebook``
=========================

.. automodule:: neurotic.gui.notebook
6 changes: 6 additions & 0 deletions docs/api/standalone.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _api-standalone:

``neurotic.gui.standalone``
===========================

.. automodule:: neurotic.gui.standalone
8 changes: 6 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,12 @@

# -- Options for intersphinx extension ---------------------------------------

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'https://docs.python.org/': None}
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
'neo': ('https://neo.readthedocs.io/en/latest', None),
'ephyviewer': ('https://ephyviewer.readthedocs.io/en/latest', None),
'elephant': ('https://elephant.readthedocs.io/en/latest', None),
}

# -- Options for todo extension ----------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ colleagues and they too will quickly be looking at the same datasets!
install
gettingstarted
metadata
api
releasenotes


Expand Down
4 changes: 2 additions & 2 deletions docs/metadata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ to the metadata file. In the example above, if the metadata file is located in

.. _congig-metadata-globals:

Global Configuration Settings:
------------------------------
Global Configuration Settings
-----------------------------

The top-level name ``neurotic_config`` is reserved for configuration settings
that apply to all datasets or to the app itself. Presently, only one
Expand Down
22 changes: 11 additions & 11 deletions docs/releasenotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Release Notes
.. toctree::
:maxdepth: 1

releases/0.7.0.rst
releases/0.6.0.rst
releases/0.5.1.rst
releases/0.5.0.rst
releases/0.4.2.rst
releases/0.4.1.rst
releases/0.4.0.rst
releases/0.3.0.rst
releases/0.2.0.rst
releases/0.1.1.rst
releases/0.1.0.rst
releases/0.7.0
releases/0.6.0
releases/0.5.1
releases/0.5.0
releases/0.4.2
releases/0.4.1
releases/0.4.0
releases/0.3.0
releases/0.2.0
releases/0.1.1
releases/0.1.0

0 comments on commit bc1f7d0

Please sign in to comment.