Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The header lines give the field names, their types, and identify any vlen data
  • The enum fields are translated to integers
  • multiple lines are used to print vlen data.
  • Optional arguments let you control which rows and columns are printed.
  • An optional argument lets you control the formatting of different fields.

If you find that the h5py interface (which is basically a numpy interface) for displaying datasets is producing output that is hard to manage, try printds.  At LCLS, this code is in the package h5tools that is part of analysis release 0.910.16 6 and later.  One does

from h5tools import printds

To use the function (however there is a bug in tag V00-00-02 of the h5tools package that prevents this. This affects the analysis release 0.10.5 and earlier). One can also obtain the code by downloading

...

putting it in your python path, and importing the function.  Note, the file printds.py is a module that contains a function named printds. When downloading the code and adding it to your python path, one would do

...