bilby.core.utils.io

Functions

check_directory_exists_and_if_not_mkdir(...)

Checks if the given directory exists and creates it if it does not exist

decode_astropy_cosmology(dct)

Decode an astropy cosmology from a dictionary.

decode_astropy_quantity(dct)

Decode an astropy quantity from a dictionary.

decode_astropy_unit(dct)

Decode an astropy unit from a dictionary.

decode_bilby_json(dct)

decode_from_hdf5(item)

Decode an item from HDF5 format to python type.

decode_hdf5_dict(output)

Decode a dictionary constructed from a HDF5 file.

decode_numpy_random_generator(dct)

Decode a numpy random generator from a dictionary.

encode_astropy_cosmology(obj)

Encode an astropy cosmology object to a dictionary.

encode_astropy_quantity(dct)

Encode an astropy quantity object to a dictionary.

encode_astropy_unit(obj)

Encode an astropy unit object to a dictionary.

encode_for_hdf5(key, item)

Encode an item to a HDF5 saveable format.

encode_numpy_random_generator(generator)

Encode a numpy random generator to a dictionary.

load_json(filename, gzip)

move_old_file(filename[, overwrite])

Moves or removes an old file.

recursively_decode_bilby_json(dct)

Recursively call bilby_decode_json

recursively_load_dict_contents_from_group(...)

Recursively load a HDF5 file into a dictionary

recursively_save_dict_contents_to_group(...)

Recursively save a dictionary to a HDF5 group

safe_file_dump(data, filename, module)

Safely dump data to a .pickle file

safe_save_figure(fig, filename, **kwargs)

Classes

BilbyJsonEncoder(*[, skipkeys, ...])