Commit 006cec0a authored by Colm Talbot's avatar Colm Talbot

Change distance marginalisation interpolation order

parent bfdbdd3a
Pipeline #68715 passed with stage
in 5 minutes and 30 seconds
......@@ -564,17 +564,13 @@ class GravitationalWaveTransient(likelihood.Likelihood):
self._create_lookup_table()
self._interp_dist_margd_loglikelihood = UnsortedInterp2d(
self._d_inner_h_ref_array, self._optimal_snr_squared_ref_array,
self._dist_margd_loglikelihood_array)
self._dist_margd_loglikelihood_array, kind='cubic')
@property
def cached_lookup_table_filename(self):
if self._lookup_table_filename is None:
dmin = self._distance_array[0]
dmax = self._distance_array[-1]
n = len(self._distance_array)
self._lookup_table_filename = (
'.distance_marginalization_lookup.npz'
.format(dmin, dmax, n))
'.distance_marginalization_lookup.npz')
return self._lookup_table_filename
@cached_lookup_table_filename.setter
......
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