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 e510b59
Show file tree
Hide file tree
Showing 18 changed files with 80 additions and 79 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.

14 changes: 13 additions & 1 deletion doc/source/conf.py
Expand Up @@ -63,13 +63,25 @@ 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'
autodoc_member_order = 'source'

# Napoleon settings
napoleon_include_special_with_doc = False

Expand All @@ -94,7 +106,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.

24 changes: 19 additions & 5 deletions doc/source/hardware.rst
@@ -1,9 +1,23 @@
The ``hardware`` Module
=======================
.. currentmodule:: pphelper.hardware
.. autosummary::
:nosignatures:

.. toctree::
:maxdepth: 1
Olfactometer
Gustometer
AnalogInput

olfactometer
analoginput
gustometer
.. automodule:: pphelper.hardware

Olfactometer
------------
.. autoclass:: pphelper.hardware.Olfactometer

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

AnalogInput
-----------
.. autoclass:: pphelper.hardware.AnalogInput
10 changes: 7 additions & 3 deletions doc/source/image.rst
@@ -1,7 +1,11 @@
The ``image`` Module
====================

.. currentmodule:: pphelper.image
.. autosummary::
:nosignatures:

fft_image
lowpass_filter_image

.. automodule:: pphelper.image
:members:
:undoc-members:
:inherited-members:
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.

13 changes: 10 additions & 3 deletions doc/source/racemodel.rst
@@ -1,7 +1,14 @@
The ``racemodel`` Module
========================

.. currentmodule:: pphelper.racemodel
.. autosummary::
:nosignatures:

gen_cdf
gen_cdfs_from_list
gen_percentiles
get_percentiles_from_cdf
gen_step_fun

.. automodule:: pphelper.racemodel
:members:
:undoc-members:
:inherited-members:
15 changes: 10 additions & 5 deletions doc/source/sdt.rst
@@ -1,7 +1,12 @@
The ``utils`` Module
====================
The ``sdt`` Module
==================

.. currentmodule:: pphelper.sdt
.. autosummary::
:nosignatures:

d_prime
a_prime
criterion

.. automodule:: pphelper.sdt
:members:
:undoc-members:
:inherited-members:
9 changes: 6 additions & 3 deletions doc/source/utils.rst
@@ -1,7 +1,10 @@
The ``utils`` Module
====================
.. currentmodule:: pphelper.utils
.. autosummary::
:nosignatures:

add_zero_padding
get_max_from_list

.. automodule:: pphelper.utils
:members:
:undoc-members:
:inherited-members:
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']
9 changes: 1 addition & 8 deletions pphelper/image.py
@@ -1,14 +1,7 @@
# -*- coding: utf-8 -*-

"""
pphelper.image
==================
Provides
--------
- ``fft_image`` : Perform an FFT on the supplied image array.
- ``lowpass_filter_image`` : Load an image from a file, and low-pass
filter via a Gaussian kernel.
Some basic image processing routines.
"""

Expand Down
8 changes: 0 additions & 8 deletions pphelper/racemodel.py
Expand Up @@ -6,14 +6,6 @@
and computer programs', published in Behavior Research Methods 39 (2),
pp. 291-302.
Provides
--------
- ``gen_cdf`` : Estimate the cumulative distribution function from response time data.
- ``gen_cdfs_from_list`` : Convenience function: Applys ``gen_cdf`` to a list of data sets.
- ``gen_percentiles`` : Calculate equally spaced percentiles values.
- ``get_percentiles_from_cdf`` : Get the values (response times) of a cumulative distribution function at the specified percentiles.
- ``gen_step_fun`` : Generate a step function from a set of observed response times.
"""

from __future__ import division, unicode_literals
Expand Down
9 changes: 2 additions & 7 deletions pphelper/sdt.py
@@ -1,13 +1,8 @@
# -*- 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.
"""

from __future__ import division, unicode_literals
Expand All @@ -17,7 +12,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
4 changes: 0 additions & 4 deletions pphelper/utils.py
Expand Up @@ -4,10 +4,6 @@
Some functions that come in handy when working with psychophysics
datasets.
Provides
--------
- ``add_zero_padding`` : Convert numbers (typically participant IDs) to strings of specific length, with leading zeros where necessary.
- ``get_max_from_list`` : Return the maximum value from a list or a list of lists.
"""

from __future__ import division, unicode_literals
Expand Down

0 comments on commit e510b59

Please sign in to comment.