Skip to content

Updates to bilby interface for new likelihoods

Daniel Williams requested to merge bilby-calibration-fix into review

What?

This MR implements chances required for the more complicated likelihoods offered by bilby.

Who?

This MR was prepared by @daniel-williams.

Where?

  • bilby config template: Changes to allow calibration to be turned-off in the ini file; additional settings for ROQs;
  • event.py: Fix to allow likelihoods to be correctly picked-up from the ledger

When?

This MR is scheduled to be included in v0.5.0 of asimov.

Why?

These changes are required to allow the use of alternative bilby likelihoods, including ROQs, multibanded likelihoods, and relative binning likelihoods.

Testing

These changes don't have any special testing requirements beyond ensuring that analyses set up with these likelihoods run satisfactorily. An example blueprint which sets up each kind of bilby analysis is below.

kind: analysis
pipeline: bilby
name: bilby-mb-test-pv2
approximant: IMRPhenomPv2
comment: Multibanded test job
likelihood:
  type: bilby.gw.likelihood.multiband.MBGravitationalWaveTransient
sampler:
  sampler: dynesty
needs:
  - Bayeswave
---
kind: analysis
pipeline: bilby
name: bilby-roq-test-pv2
needs:
  - Bayeswave
approximant:  IMRPhenomPv2
comment: IMRPhenomPv2 ROQ Test Job
likelihood:
  calibration:
    sample: False
  type: bilby.gw.likelihood.roq.ROQGravitationalWaveTransient
  roq:
    folder: /home/cbc/ROQ_data/IMRPhenomPv2/8s
    scale: 1.0
sampler:
  sampler: dynesty
quality:
  maximum frequency:
    H1: 1024
    L1: 1024
    V1: 1024
    K1: 1024
    G1: 1024
prior:
  chirp mass:
    minimum: 7.932707
    maximum: 14.759644
---
kind: analysis
pipeline: bilby
waveform:
  approximant: IMRPhenomPv2_NRTidal
name: bilby-test-rb
needs:
  - Bayeswave
comment: Relative binning test job
data:
  calibration: {}
likelihood:
  calibration:
    sample: False
  type: bilby.gw.likelihood.relative.RelativeBinningGravitationalWaveTransient
  frequency domain source model: lal_binary_neutron_star_relative_binning
  marginalization:
    time: False
  kwargs:
    fiducial_parameters:
      chirp_mass: 1.4875
      mass_ratio: 0.95
      chi_1: 0.0104673
      chi_2: -0.00563985
      luminosity_distance: 60.0
      dec: -1.22
      ra: 1.67
      theta_jn: 0.879
      psi: 2.697
      phase: 3.686990398567503
      geocent_time: 1364342417.9350648
      lambda_1: 1500.0
      lambda_2: 750.0
    epsilon: 0.025
sampler:
  sampler: dynesty
  kwargs:
    nlive: 1000
    naccept: 60
    sample: acceptance-walk
    check_point_plot: True
Edited by Daniel Williams

Merge request reports