-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maximilian Schmidt
committed
Dec 22, 2016
1 parent
ae80b78
commit a4896dd
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]] |