Initial consolidation of our HDF reading routines into a single pip-installable Python package, which is now available as psi-io on PyPi.
Users familiar with psihdf.py
or psi_io.py
should be able to use this as a seamless drop-in replacement, e.g.:
# if you used to use the standalone psi_io.py:
import psi_io
# if you used to use the standalone psihdf.py and don't want to edit existing code:
import psi_io as psihdf
The package was designed to not require HDF4, but if pyhdf
is present, .hdf
files can be read no problem.