Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
DOC: Documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hoechenberger committed Sep 4, 2015
1 parent 91c9f96 commit a3bf669
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 54 deletions.
6 changes: 3 additions & 3 deletions doc/build-docs.bat
@@ -1,6 +1,6 @@
@echo off
rmdir /s /q build
% del source\pphelper.rst
% del source\modules.rst
% sphinx-apidoc -f -o source ..\pphelper ..\pphelper\version.py ..\pphelper\tests
REM del source\pphelper.rst
REM del source\modules.rst
REM sphinx-apidoc --no-toc -f -o source ..\pphelper ..\pphelper\version.py ..\pphelper\tests
make html
4 changes: 2 additions & 2 deletions doc/build-docs.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env sh

rm -rf build source/pphelper.rst source/modules.rst
# sphinx-apidoc -o source ../pphelper ../pphelper/version.py ../pphelper/tests
# rm -rf build source/pphelper.rst source/modules.rst
# sphinx-apidoc --no-toc -f -o source ../pphelper ../pphelper/version.py ../pphelper/tests
make html
7 changes: 4 additions & 3 deletions doc/source/about.rst
Expand Up @@ -2,6 +2,7 @@ About pphelper
==============

.. automodule:: pphelper
:members:
:undoc-members:
:inherited-members:
:no-members:
:no-undoc-members:
:no-inherited-members:
:no-show-inheritance:
7 changes: 0 additions & 7 deletions doc/source/analoginput.rst

This file was deleted.

13 changes: 12 additions & 1 deletion doc/source/conf.py
Expand Up @@ -63,13 +63,24 @@ def __getattr__(cls, name):
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
# 'sphinx.ext.doctest',
# 'sphinx.ext.todo',
'sphinx.ext.viewcode',
# 'numpydoc',
'sphinxcontrib.napoleon',
]

autodoc_default_flags = [
'members',
'undoc-members',
'inherited-members',
'show-inheritance'
]

# Also document __init__() methods.
autoclass_content = 'both'

# Napoleon settings
napoleon_include_special_with_doc = False

Expand All @@ -94,7 +105,7 @@ def __getattr__(cls, name):
# built documents.
#

import pphelper
# import pphelper
# Ger version info.
# This basically imports __version__ from version.py.
exec(open('../../pphelper/version.py').read())
Expand Down
7 changes: 0 additions & 7 deletions doc/source/gustometer.rst

This file was deleted.

16 changes: 12 additions & 4 deletions doc/source/hardware.rst
Expand Up @@ -2,8 +2,16 @@ The ``hardware`` Module
=======================

.. toctree::
:maxdepth: 1
:maxdepth: 1

olfactometer
analoginput
gustometer
Olfactometer
------------
.. autoclass:: pphelper.hardware.Olfactometer

Gustometer
----------
.. autoclass:: pphelper.hardware.Gustometer

AnalogInput
-----------
.. autoclass:: pphelper.hardware.AnalogInput
4 changes: 1 addition & 3 deletions doc/source/image.rst
Expand Up @@ -2,6 +2,4 @@ The ``image`` Module
====================

.. automodule:: pphelper.image
:members:
:undoc-members:
:inherited-members:
:noindex:
3 changes: 2 additions & 1 deletion doc/source/index.rst
Expand Up @@ -6,12 +6,13 @@
Welcome to pphelper's documentation!
====================================
.. Contents:
.. toctree::
:maxdepth: 1

about
hardware
racemodel
sdt
hardware
image
utils
8 changes: 0 additions & 8 deletions doc/source/olfactometer.rst

This file was deleted.

1 change: 1 addition & 0 deletions doc/source/racemodel.rst
Expand Up @@ -5,3 +5,4 @@ The ``racemodel`` Module
:members:
:undoc-members:
:inherited-members:
:noindex:
6 changes: 2 additions & 4 deletions doc/source/sdt.rst
@@ -1,7 +1,5 @@
The ``utils`` Module
The ``sdt`` Module
====================

.. automodule:: pphelper.sdt
:members:
:undoc-members:
:inherited-members:
:noindex:
4 changes: 1 addition & 3 deletions doc/source/utils.rst
Expand Up @@ -2,6 +2,4 @@ The ``utils`` Module
====================

.. automodule:: pphelper.utils
:members:
:undoc-members:
:inherited-members:
:noindex:
2 changes: 1 addition & 1 deletion pphelper/__init__.py
Expand Up @@ -15,4 +15,4 @@
print('Problem importing the hardware module, skipping.\n'
'Please check if PyLibNIDAQmx is installed.')

__all__ = ['racemodel', 'sdt', 'hardware', 'utils', 'image']
__all__ = ['racemodel', 'hardware', 'image', 'sdt', 'utils']
3 changes: 1 addition & 2 deletions pphelper/image.py
@@ -1,8 +1,7 @@
# -*- coding: utf-8 -*-

"""
pphelper.image
==================
Some basic image processing routines.
Provides
--------
Expand Down
11 changes: 6 additions & 5 deletions pphelper/sdt.py
@@ -1,13 +1,14 @@
# -*- coding: utf-8 -*-

"""
Some functions that come in handy when working with psychophysics
datasets.
Signal detection theory calculations.
Provides
--------
- ``d_prime`` : Calculate the sensitivity index d' ("d-prime").
- ``criterion`` : Calculate the decision criterion C.
- ``d_prime`` : Calculate the sensitivity index *d'*.
- ``a_prime`` : Calculate the sensitivity index *A'*.
- ``criterion`` : Calculate the decision criterion *C*.
"""

from __future__ import division, unicode_literals
Expand All @@ -17,7 +18,7 @@

def d_prime(hits, false_alarms, n, nafc=1):
"""
Calculate the sensitivity index d' ("d-prime").
Calculate the sensitivity index d'.
Parameters
----------
Expand Down

0 comments on commit a3bf669

Please sign in to comment.