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

create_prior_diststats: remove the last 10% of the PSD to remove anti-aliasing artifacts

parent 2ed3660d
No related branches found
No related tags found
No related merge requests found
Pipeline #247259 failed
......@@ -107,8 +107,8 @@ def parse_command_line():
if options.psd_xml:
for ifo, p in series.read_psd_xmldoc(ligolw_utils.load_filename(options.psd_xml, verbose = options.verbose, contenthandler = series.PSDContentHandler)).items():
f = numpy.arange(len(p.data.data)) * p.deltaF
psd[ifo] = scipy.interpolate.interp1d(f, p.data.data)
# remove the last 10% of the PSD to remove anti-aliasing artifacts and replace with +inf
psd[ifo] = scipy.interpolate.interp1d(f[:int(0.9*len(f))], p.data.data[:int(0.9*len(f))], fill_value = numpy.inf, bounds_error = False)
template_ids = []
horizon_factors = {}
......
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