def dict_to_hdf5(dict_like, h5group):
    """
    Save a dictionnary-like object inside a h5 file group
    """
    # Write attributes
    for key, value in dict_like.items():
        if value is not None:
            h5group.attrs[str(key)] = value
def dict_to_hdf5 ( dict_like , h5group ) : for key , value in dict_like . items ( ) : if value is not None : h5group . attrs [ str ( key ) ] = value
Save a dictionnary-like object inside a h5 file group