Skip to content

Commit

Permalink
Improve Sphinx documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Schmidt committed Dec 22, 2016
1 parent ae80b78 commit a4896dd
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/conversion.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
=============
Conversion from old release versions
=============

.. toctree::
:maxdepth: 2

Release version 1.0.0 introduced some changes to the file format (see `Release notes
<https://github.com/INM-6/h5py_wrapper/releases>`_).

.. literalinclude:: ../convert_h5file
:start-after: """
:end-before: """
16 changes: 16 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,22 @@ API reference

api_reference


Supported data types
====================
.. toctree::
:maxdepth: 2

supported_datatypes

Conversion from old releases
============================
.. toctree::
:maxdepth: 2

conversion


Indices and tables
==================

Expand Down
47 changes: 47 additions & 0 deletions doc/supported_datatypes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
====================
Supported data types
====================

.. toctree::
:maxdepth: 2


The wrapper stores the original data types of values of the dictionary in the produced hdf5 file.
The following data types are supported:

* float

* int

* str

* tuple

* numpy.array

* list

* bool

* quantities.Quantity (see https://pypi.python.org/pypi/quantities)

* Lists, tuples and numpy.arrays up to arbitrary depths if all dimensions are uniform, e.g.

.. code-block:: python
l = numpy.ones((3,3,3))

* Lists and tuples are required to contain the contain equal data types across one dimension. For instance, this raises an error


.. code-block:: python
l = [[1,2], 'a']



* Lists, tuples and numpy.arrays with unequal dimensions with maximal depth 1.

.. code-block:: python
l = [[1,2], [1]]

0 comments on commit a4896dd

Please sign in to comment.