Fix the writing of priors to include the module
If a prior is defined as, say bilby.gw.prior.UniformInComponentsChirpMass
, then when you use the to_file
then the bilby.gw.prior.
will not be added to the written file and hence it will fail on future read-in. This corrects that error.