--calibration-reweighting will enabled the calibration uncertainty and --distance-reweighting will do the comoving distance reweighting
if the time sampling is enabled, it will use the time samples to speed up the calibration reweighting (time_marg=False for the calmarg code). If the time sampling is disabled, it will do the time-marginalization itself and take longer (i.e. the way we did it in O3)
the calibration uncertainty code requires us to generate a pickle file with the event settings. this is done with bilby: "bilby_pipe_generation". I've set it up so the user can either provide the bilby ini file ("--bilby-ini-file") to run the code to generate the pickle file, or the use can provide a pre-generated pickle file ("--bilby-pickle-file").
I've also set it up such that the user can also just do the comoving distance reweighting and not the calibration reweighting if desired.
The distance reweighting require the samples to be in the h5 format. I've added a node in the DAG to convert ascii to h5 (pesummary format); the script is called convert_output_ascii2h5
Jake's patch to add calibration marginalization, based on Ethan's code (and DW's implementations for asimov in O3)