Skip to content

Commit

Permalink
add missing api docs (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter authored Nov 27, 2024
1 parent 52b1707 commit cf99315
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/api/checks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ NWBFile Metadata
----------------
.. automodule:: nwbinspector.checks._nwbfile_metadata

General
-------
.. automodule:: nwbinspector.checks._general

NWB Containers
--------------
.. automodule:: nwbinspector.checks._nwb_containers
Expand Down Expand Up @@ -43,3 +47,7 @@ Optogenetics (ogen)
ImageSeries
-----------
.. automodule:: nwbinspector.checks._image_series

Images
------
.. automodule:: nwbinspector.checks._images
1 change: 1 addition & 0 deletions docs/best_practices/best_practices_index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ Authors: Oliver Ruebel, Andrew Tritt, Ryan Ly, Cody Baker and Ben Dichter
ophys
ogen
image_series
images
simulated_data
extensions
32 changes: 32 additions & 0 deletions docs/best_practices/images.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Images
======

Storage of Images
-----------------

.. _best_practice_order_of_images_unique:
.. _best_practice_order_of_images_len:

Storing the order of images in an Images object
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The ``order_of_images`` field of an :ref:`nwb-schema:sec-Images` object is designed to contain the order
of the images in the ``images`` field of the :ref:`nwb-schema:sec-Images` object. As such, all of the values
in the ``order_of_images`` field should be unique, and its length should be equal to the number of
:ref:`nwb-schema:sec-Image` objects in the :ref:`nwb-schema:sec-Images` object.

Check functions: :py:meth:`~nwbinspector.checks._images.check_order_of_images_unique` and
:py:meth:`~nwbinspector.checks._images.check_order_of_images_len`


.. _best_practice_index_series_points_to_image:

Use of IndexSeries
~~~~~~~~~~~~~~~~~~

The use of an :ref:`nwb-schema:sec-IndexSeries` object to point to a :ref:`nwb-schema:sec-TimeSeries` will
be deprecated in a future release of the NWB schema. The :ref:`nwb-schema:sec-IndexSeries` object should
point to an :ref:`nwb-schema:sec-Images` container, which holds a collection of :ref:`nwb-schema:sec-Image`
objects instead.

Check function: :py:meth:`~nwbinspector.checks._images.check_index_series_points_to_image`

0 comments on commit cf99315

Please sign in to comment.