Commit cf686f57 authored by Leo Pound Singer's avatar Leo Pound Singer

Slightly relax SNR time series assertion

Original: 65d5973d3ce457ee96bf1249a2cb855e108ad901
parent 60fab8af
......@@ -273,10 +273,11 @@ def ligolw_sky_map(
'mixed lengths')
# Perform sanity checks that the middle sample of the SNR time series match
# the sngl_inspiral records.
# the sngl_inspiral records. Relax valid interval slightly from
# +/- 0.5 deltaT to +/- 0.6 deltaT for floating point roundoff error.
for sngl_inspiral, series in zip(sngl_inspirals, snr_series):
if np.abs(0.5 * (nsamples - 1) * series.deltaT
+ float(series.epoch - sngl_inspiral.end)) >= 0.5 * deltaT:
+ float(series.epoch - sngl_inspiral.end)) >= 0.6 * deltaT:
raise ValueError('BAYESTAR expects the SNR time series to be '
'centered on the sngl_inspiral end times')
......
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