Skip to content
Snippets Groups Projects

bilby/gw/detector/calibration.py: optimize spline interpolation of calibration uncertainties

Merged Soichiro Morisaki requested to merge soichiro/bilby:rapid_spline_cal into master
All threads resolved!
@@ -183,7 +183,10 @@ class CubicSpline(Recalibrate):
np.log10(minimum_frequency), np.log10(maximum_frequency), n_points)
self._delta_log_spline_points = self._log_spline_points[1] - self._log_spline_points[0]
# precompute matrix converting values at nodes to spline coefficients
# Precompute matrix converting values at nodes to spline coefficients.
# The algorithm for interpolation is described in
# https://dcc.ligo.org/LIGO-T2300140, and the matrix calculated here is
# to solve Eq. (9) in the note.
tmp1 = np.zeros(shape=(n_points, n_points))
tmp1[0, 0] = -1
tmp1[0, 1] = 2
Loading