bilby.core.utils.io.encode_for_hdf5

bilby.core.utils.io.encode_for_hdf5(key, item)[source]

Encode an item to a HDF5 saveable format.

Added in version 1.1.0.

Parameters:
item: object

Object to be encoded, specific options are provided for Bilby types

Returns:
output: object

Input item converted into HDF5 saveable format