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

interpolate_psd(): remove dead code

- remove commented out and abandoned attempt at linear interpolator of PSD.
parent 59874d67
No related branches found
No related tags found
No related merge requests found
......@@ -727,16 +727,6 @@ def interpolate_psd(psd, deltaF):
#x = 1 / fftpack.rfft(x)**2
#psd_data = numpy.concatenate(([x[0]], x[1::2]))
#
# interpolate PSD with linear interpolator
#
#psd_data = psd.data.data
#f = psd.f0 + numpy.arange(len(psd_data)) * psd.deltaF
#interp = interpolate.interp1d(f, psd_data, bounds_error = False)
#f = psd.f0 + numpy.arange(round(len(psd_data) * psd.deltaF / deltaF)) * deltaF
#psd_data = interp(f)
#
# interpolate log(PSD) with cubic spline. note that the PSD is
# clipped at 1e-300 to prevent nan's in the interpolator (which
......
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