Skip to content

Commit dd8d17f

Browse files
committed
docs: cleaned up member presentation
- fixed: classes littered the sidebar doc menu - removed :member: on .. automodule:: and explicitly document classes in core and formats
1 parent 9114044 commit dd8d17f

File tree

10 files changed

+68
-12
lines changed

10 files changed

+68
-12
lines changed

doc/source/gridData/core.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
.. automodule:: gridData.core
2-
:members:
2+

doc/source/gridData/formats.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ small number of file formats is directly supported.
2727
============================ ========== ========= ===== ===== =========================================
2828
:mod:`~gridData.OpenDX` OpenDX_ dx x x subset of OpenDX implemented
2929
:mod:`~gridData.gOpenMol` gOpenMol_ plt x
30-
:mod:`~gridData.mrc` CCP4_ ccp4,mrc x subset implemented
30+
:mod:`~gridData.mrc` CCP4_ ccp4,mrc x x subset implemented
3131
:class:`~gridData.core.Grid` pickle pickle x x standard Python pickle of the Grid class
3232
============================ ========== ========= ===== ===== =========================================
3333

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.. automodule:: gridData.OpenDX
2-
:members:
2+
33

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
.. automodule:: gridData.gOpenMol
2-
:members:
2+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
.. automodule:: gridData.mrc
2-
:members:
2+

doc/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ GridDataFormats is open source and welcomes your contributions. Fork the `GridDa
4949
.. Contents (sidebar)
5050
5151
.. toctree::
52-
:maxdepth: 4
52+
:maxdepth: 3
5353
:hidden:
5454

5555
installation

gridData/OpenDX.py

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,46 @@
160160
https://web.archive.org/web/20080808140524/http://opendx.sdsc.edu/docs/html/pages/usrgu068.htm
161161
.. http://opendx.sdsc.edu/docs/html/pages/usrgu068.htm#HDREDF
162162
163-
Classes and functions
164-
---------------------
163+
Classes
164+
-------
165+
166+
DX field class
167+
~~~~~~~~~~~~~~
168+
169+
The primary class is :class:`field`, which is a container for the other classes.
170+
It contains the following classes:
171+
172+
* :class:`gridpositions`
173+
* :class:`gridconnections`
174+
* :class:`array`
175+
176+
The :class:`gridpositions` class contains the position of the grid cells.
177+
The :class:`gridconnections` class contains the connections between the grid cells.
178+
The :class:`array` class contains the data on the grid.
179+
180+
.. autoclass:: field
181+
:members:
182+
183+
DX components
184+
~~~~~~~~~~~~~
185+
186+
The :class:`field` class contains the following components:
187+
188+
.. autoclass:: gridpositions
189+
:members:
190+
191+
.. autoclass:: gridconnections
192+
:members:
193+
194+
.. autoclass:: array
195+
:members:
196+
197+
DX parser
198+
~~~~~~~~~~
199+
The :class:`DXParser` class is used to parse the DX file and construct the :class:`field` object.
200+
201+
.. autoclass:: DXParser
202+
:members:
165203
166204
"""
167205
import numpy

gridData/core.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Copyright (c) 2009-2014 Oliver Beckstein <orbeckst@gmail.com>
33
# Released under the GNU Lesser General Public License, version 3 or later.
44
r"""
5-
Core functionality for storing n-D grids --- :mod:`gridData.core`
6-
=================================================================
5+
Core functionality for storing n-D grids
6+
========================================
77
88
The :mod:`core` module contains classes and functions that are
99
independent of the grid data format. In particular this module
@@ -19,10 +19,20 @@
1919
g.load(filename) # populate with data from filename
2020
2121
22-
Classes and functions
23-
---------------------
22+
Classes
23+
-------
2424
25+
.. autoclass:: Grid
26+
:members:
27+
:undoc-members:
28+
:show-inheritance:
29+
30+
Functions
31+
---------
32+
33+
.. autofunction:: ndmeshgrid
2534
"""
35+
2636
import os
2737
import errno
2838
import pickle

gridData/gOpenMol.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@
126126
Classes
127127
-------
128128
129+
.. autoclass:: Plt
130+
:members:
131+
129132
"""
130133
import warnings
131134
import struct

gridData/mrc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
Classes
2929
-------
3030
31+
.. autoclass:: MRC
32+
:members:
33+
34+
3135
"""
3236
import numpy as np
3337
import mrcfile
@@ -176,6 +180,7 @@ def write(self, filename):
176180
header information (including mapc, mapr, maps ordering) is preserved.
177181
Otherwise, standard ordering (mapc=1, mapr=2, maps=3) is used.
178182
183+
179184
.. versionadded:: 1.1.0
180185
"""
181186
if filename is not None:

0 commit comments

Comments
 (0)