Skip to content

Commit

Permalink
Merge pull request espressomd#2353 from jonaslandsgesell/patch-7
Browse files Browse the repository at this point in the history
fix mentioning h5py
  • Loading branch information
fweik authored and RudolfWeeber committed Nov 1, 2018
1 parent 545a7ce commit e641d30
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/sphinx/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,16 @@ call the H5md objects :meth:`espressomd.io.writer.h5md.H5md.write` method withou
After the last write call, you have to call the ``close()`` method to remove
the backup file and to close the datasets etc.

H5MD files can be read and modified with the python module h5py (for documentation see `h5py <http://docs.h5py.org/en/stable/>`_). For example all positions stored in the file called "h5mdfile.h5" can be read using

.. code:: python
import h5py
h5file = h5py.File("h5mdfile.h5", 'r')
positions = h5file['particles/atoms/position/value']
Further the files can be inspected with the GUI tool hdfview.

.. _Writing MPI-IO binary files:

Writing MPI-IO binary files
Expand Down

0 comments on commit e641d30

Please sign in to comment.