bilby.core.utils.io.encode_astropy_quantity

bilby.core.utils.io.encode_astropy_quantity(dct)[source]

Encode an astropy quantity object to a dictionary.

Adds the key __astropy_quantity__ to the dictionary to indicate that the object is a quantity object.