Skip to content

Commit

Permalink
Add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-f-cruz committed Apr 25, 2024
1 parent ea92993 commit 035bb2b
Show file tree
Hide file tree
Showing 11 changed files with 84 additions and 4 deletions.
9 changes: 9 additions & 0 deletions docs/api.base.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
api.base
-------------

.. toctree::
:maxdepth: 2

api.base/session
api.base/rig
api.base/task_logic
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions docs/api.calibration.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
api.calibration
-------------

Check warning on line 2 in docs/api.calibration.rst

View workflow job for this annotation

GitHub Actions / pages

Title underline too short.

.. toctree::
:maxdepth: 2

api.calibration/aind_manipulator
api.calibration/load_cells
api.calibration/olfactometer
api.calibration/water_valve
15 changes: 15 additions & 0 deletions docs/api.calibration/aind_manipulator.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
aind_manipulator
-------------

Check warning on line 2 in docs/api.calibration/aind_manipulator.rst

View workflow job for this annotation

GitHub Actions / pages

Title underline too short.

.. literalinclude:: ../../examples/aind_manipulator.py
:language: python

.. autopydantic_model:: aind_behavior_services.calibration.aind_manipulator.CalibrationLogic
:members:
:undoc-members:
:show-inheritance:

.. autopydantic_model:: aind_behavior_services.calibration.aind_manipulator.CalibrationRig
:members:
:undoc-members:
:show-inheritance:
15 changes: 15 additions & 0 deletions docs/api.calibration/load_cells.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
load_cells
-------------

.. literalinclude:: ../../examples/load_cells.py
:language: python

.. autopydantic_model:: aind_behavior_services.calibration.load_cells.CalibrationLogic
:members:
:undoc-members:
:show-inheritance:

.. autopydantic_model:: aind_behavior_services.calibration.load_cells.CalibrationRig
:members:
:undoc-members:
:show-inheritance:
15 changes: 15 additions & 0 deletions docs/api.calibration/olfactometer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
olfactometer
-------------

.. literalinclude:: ../../examples/olfactometer.py
:language: python

.. autopydantic_model:: aind_behavior_services.calibration.olfactometer.CalibrationLogic
:members:
:undoc-members:
:show-inheritance:

.. autopydantic_model:: aind_behavior_services.calibration.olfactometer.CalibrationRig
:members:
:undoc-members:
:show-inheritance:
15 changes: 15 additions & 0 deletions docs/api.calibration/water_valve.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
water_valve
-------------

.. literalinclude:: ../../examples/water_valve.py
:language: python

.. autopydantic_model:: aind_behavior_services.calibration.water_valve.CalibrationLogic
:members:
:undoc-members:
:show-inheritance:

.. autopydantic_model:: aind_behavior_services.calibration.water_valve.CalibrationRig
:members:
:undoc-members:
:show-inheritance:
6 changes: 3 additions & 3 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ api
.. toctree::
:maxdepth: 2

api/session
api/rig
api/task_logic
api.base
api.calibration

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ docs = [
'sphinx-jinja',
'autodoc_pydantic',
'myst_parser',
'sphinx-jsonschema'
'sphinx-jsonschema',
'sphinx-copybutton'
]

[tool.setuptools.packages.find]
Expand Down

0 comments on commit 035bb2b

Please sign in to comment.