Skip to content
Snippets Groups Projects
Commit b52fc000 authored by Colm Talbot's avatar Colm Talbot Committed by Aditya Vijaykumar
Browse files

Apply 2 suggestion(s) to 2 file(s)

parent 8888017e
No related branches found
No related tags found
1 merge request!1105Relative Binning in bilby
......@@ -1403,9 +1403,8 @@ def compute_snrs(sample, likelihood, npool=1):
"""
if likelihood is not None:
if isinstance(sample, dict):
signal_polarizations = likelihood.waveform_generator.frequency_domain_strain(sample)
likelihood.parameters.update(sample)
signal_polarizations = likelihood.waveform_generator.frequency_domain_strain(sample)
for ifo in likelihood.interferometers:
per_detector_snr = likelihood.calculate_snrs(signal_polarizations, ifo)
sample['{}_matched_filter_snr'.format(ifo.name)] =\
......
......@@ -10,8 +10,8 @@ from ..utils import noise_weighted_inner_product
class RelativeBinningGravitationalWaveTransient(GravitationalWaveTransient):
"""A gravitational-wave transient likelihood object which uses the relative
binning procedure to calculate a fast likelihood. See IAS paper:
binning procedure to calculate a fast likelihood. See Zackay et al.
arXiv1806.08792
Parameters
----------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment