Skip to content
Snippets Groups Projects
Commit d9bced77 authored by Wanting Niu's avatar Wanting Niu :speech_balloon:
Browse files

better coding

parent c29102cd
No related branches found
No related tags found
1 merge request!369Document the template_duration in svd_bank match to the actual waveform
Pipeline #482306 failed
......@@ -405,7 +405,7 @@ def write_bank(filename, banks, psd_input, process_param_dict = None, verbose =
root = lw.appendChild(ligolw.LIGO_LW(Attributes({u"Name": u"gstlal_svd_bank_Bank"})))
for row in bank.sngl_inspiral_table:
row.template_duration = [frag.end for frag in bank.bank_fragments][-1]
row.template_duration = bank.bank_fragments[-1].end
# make non-signal model templates have an invalid template id
if bank.bank_type != "signal_model":
row.template_id = -row.template_id
......
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