Skip to content

Commit

Permalink
fix #301 : updated api.rst to display also instance attributes (not p…
Browse files Browse the repository at this point in the history
…ossible with Sphinx)
  • Loading branch information
alixdamman committed Jun 13, 2017
1 parent 40cadc6 commit a402f3b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
24 changes: 22 additions & 2 deletions doc/source/api.rst
Expand Up @@ -13,11 +13,23 @@ Axis

Axis

Exploring
---------

=========================== ==============================================================
Axis.name Name of the axis. None in the case of an anonymous axis.
--------------------------- --------------------------------------------------------------
:attr:`Axis.labels` Labels of the axis.
--------------------------- --------------------------------------------------------------
:attr:`Axis.labels_summary` Short representation of the labels.
=========================== ==============================================================

Copying
-------

.. autosummary::
:toctree: _generated/

Axis.labels
Axis.labels_summary
Axis.copy

Searching
Expand Down Expand Up @@ -227,6 +239,14 @@ Copying
Inspecting
----------

=================== ==============================================================
LArray.data Data of the array (Numpy ndarray)
------------------- --------------------------------------------------------------
LArray.axes Axes of the array (AxisCollection)
------------------- --------------------------------------------------------------
LArray.title Title of the array (str)
=================== ==============================================================

.. autosummary::
:toctree: _generated/

Expand Down
2 changes: 1 addition & 1 deletion larray/core/axis.py
Expand Up @@ -177,7 +177,7 @@ def i(self):
@property
def labels(self):
"""
List of labels.
labels of the axis.
"""
return self._labels

Expand Down

0 comments on commit a402f3b

Please sign in to comment.