Skip to content

Reorganize likelihood setting determination of bilby_pipe_gracedb

This MR reorganizes the codes to decide likelihood settings in bilby_pipe_gracedb.

  • This MR forces the likelihood type to be the standard one for a high-mass trigger when the phenompv2_bbh_roq likelihood mode is used. It fixes a part of https://git.ligo.org/lscsoft/bilby_pipe/-/issues/273.

  • This change allows user to pass trigger-dependent likelihood settings as a json file through --cbc-likelihood-mode. For example, this avoids us from needing to make release every time when we have new ROQ basis.

The structure of json is something like the following:

{
    "likelihood_args": {
        "likelihood_type": "ROQGravitationalWaveTransient",
        "minimum_frequency": 20,
        "maximum_frequency": 2048,
        "duration": 4,
    },
    "likelihood_parameter_bounds": {"mass_ratio_min": 0.125},
    "trigger_dependent": {
        "range": {"chirp_mass": [[30, 40], [40, 50]]},
        "likelihood_args": [
            {"roq_folder": "basis_for_30Msun_to_40Msun"},
            {"roq_folder": "basis_for_40Msun_to_50Msun"},
        ],
        "likelihood_parameter_bounds": [
            {"chirp_mass_min": 30, "chirp_mass_max": 40},
            {"chirp_mass_min": 40, "chirp_mass_max": 50},
        ]
}

likelihood_args and likelihood_parameter_bounds contain default likelihood arguments and parameter bounds respectively. trigger_dependent contains trigger-dependent configurations, and contains parameter ranges (range) and lists of trigger-dependent arguments (likelihood_args) and bounds (likelihood_parameter_bounds).

Edited by Soichiro Morisaki

Merge request reports

Loading