Skip to content
Snippets Groups Projects
Commit 5e1befe4 authored by Chad Hanna's avatar Chad Hanna
Browse files

lloidparts, svd_bank: cleanup svd bank psd namespace

parent 1914b277
No related branches found
No related tags found
No related merge requests found
......@@ -1051,7 +1051,7 @@ def mkLLOIDmulti(pipeline, detectors, banks, psd, psd_fft_length = 32, ht_gate_t
width = 32,
statevector = statevector,
dqvector = dqvector,
fir_whiten_reference_psd = banks[instrument][0].psd[instrument]
fir_whiten_reference_psd = banks[instrument][0].processed_psd
)
#
......
......@@ -349,7 +349,9 @@ def read_banks(filename, contenthandler, verbose = False):
# FIXME in principle this could be different for each bank included in
# this file, but we only put one in the file for now
psd = lal.series.read_psd_xmldoc(xmldoc)
# FIXME, right now there is only one instrument so we just pull out the
# only psd there is
processed_psd = lal.series.read_psd_xmldoc(xmldoc).values()[0]
for root in (elem for elem in xmldoc.getElementsByTagName(ligolw.LIGO_LW.tagName) if elem.hasAttribute(u"Name") and elem.Name == "gstlal_svd_bank_Bank"):
......@@ -374,7 +376,7 @@ def read_banks(filename, contenthandler, verbose = False):
bank.sigmasq = ligolw_array.get_array(root, 'sigmasq').array
# attach a reference to the psd
bank.psd = psd
bank.processed_psd = processed_psd
# Read bank fragments
bank.bank_fragments = []
......
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