cogwheel.posterior.main

cogwheel.posterior.main(eventname, mchirp_guess, approximant, prior_name, parentdir, overwrite, kwargs_filename=None, refine=False)

Construct a Posterior instance, optionally refine its reference waveform and save it to JSON.

Parameters:
eventnamestr

Event name, e.g. ‘GW150914’.

mchirp_guessfloat

Approximate chirp mass (Msun).

approximantstr

Approximant name.

prior_namestr

Key in gw_prior.prior_registry.

parentdiros.PathLike

Path to top directory where to save output.

overwritebool

Whether to overwrite preexisting files. False (default) raises an error if the file exists.

kwargs_filenamePathLike or None

Path to JSON file from which to load kwargs to Posterior.from_event().

refinebool

Whether to apply an expensive likelihood maximization over all parameters.