bilby.core.utils.io.encode_numpy_seed_sequence

bilby.core.utils.io.encode_numpy_seed_sequence(seed_sequence)[source]

Encode a numpy SeedSequence to a dictionary.

Adds the key __numpy_seed_sequence__ to the dictionary to indicate that the object is a numpy SeedSequence.

The state key contains the state of the seed sequence.

Added in version 3.0.0.