Gitlab will migrate to a new storage backend starting 0300 UTC on 2020-04-04. We do not anticipate a maintenance window for this migration. Performance may be impacted over the weekend. Thanks for your patience.

Commit 709df9e9 authored by Gregory Ashton's avatar Gregory Ashton

Merge branch 'edit_dist_lookup_table_loop' into 'master'

Move optimal_snr_squared_array calculation from inner to outer loop

See merge request lscsoft/bilby!514
parents 5621baec 906cda74
Pipeline #66308 passed with stages
in 14 minutes and 45 seconds
......@@ -600,10 +600,10 @@ class GravitationalWaveTransient(likelihood.Likelihood):
self._dist_margd_loglikelihood_array = np.zeros((400, 800))
for ii, optimal_snr_squared_ref in enumerate(self._optimal_snr_squared_ref_array):
optimal_snr_squared_array = (
optimal_snr_squared_ref * self._ref_dist ** 2. /
self._distance_array ** 2)
for jj, d_inner_h_ref in enumerate(self._d_inner_h_ref_array):
optimal_snr_squared_array = (
optimal_snr_squared_ref * self._ref_dist ** 2. /
self._distance_array ** 2)
d_inner_h_array = (
d_inner_h_ref * self._ref_dist / self._distance_array)
if self.phase_marginalization:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment