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.

At LCLS, this code is in the package h5tools that is part of analysis release 0.9.16 and later.  One does

from h5tools import printds

To use the function. One can also obtain the code This code is obtained by downloading

printds.py

putting it in your python path, and after loading a dataset ds using h5py, passing it to the function. See the example below, as well as further examples in the code.

...