Skip to content
Snippets Groups Projects
Commit b2c70a1d authored by Aditya Vijaykumar's avatar Aditya Vijaykumar
Browse files

remove extra code

parent e07675a3
No related branches found
No related tags found
1 merge request!1105Relative Binning in bilby
......@@ -355,14 +355,11 @@ class RelativeBinningGravitationalWaveTransient(GravitationalWaveTransient):
return fiducial_waveform * full_waveform_ratio
def calculate_snrs(self, waveform_polarizations, interferometer):
waveform_ratio_per_detector = self.compute_waveform_ratio_per_interferometer(
r0, r1 = self.compute_waveform_ratio_per_interferometer(
waveform_polarizations=waveform_polarizations,
interferometer=interferometer,
)
a0, a1, b0, b1 = self.summary_data[interferometer.name]
r0, r1 = waveform_ratio_per_detector
d_inner_h = np.sum(a0 * np.conjugate(r0) + a1 * np.conjugate(r1))
h_inner_h = np.sum(b0 * np.abs(r0) ** 2 + 2 * b1 * np.real(r0 * np.conjugate(r1)))
optimal_snr_squared = h_inner_h
......
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