Skip to content
Snippets Groups Projects
Commit f8d45f86 authored by Kipp Cannon's avatar Kipp Cannon Committed by Kipp Cannon
Browse files

reference_psd: fix irrelevant off-by-one bug

- in PSDFirKernel.psd_to_linear_phase_whitening_fir_kernel(), this fixes an off-by-one bug in the calculation of the sample rate.  note that the sample rate is rounded to the nearest integer, so this patch has no effect on the numerical value, but it's better for the expression to be correct for the sake of someone reading it.
parent 5bda0282
No related branches found
No related tags found
No related merge requests found
......@@ -477,7 +477,7 @@ class PSDFirKernel(object):
#
data = psd.data.data / 2
sample_rate = 2 * int(round(psd.f0 + len(data) * psd.deltaF))
sample_rate = 2 * int(round(psd.f0 + (len(data) - 1) * psd.deltaF))
#
# remove LAL normalization
......
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