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

gstlal_inpsiral: require unique template IDs

- the coincidence code will now rely on the .template_id attribute to
  determine which template each trigger has come from.  this patch adds an
  assert to confirm that that is safe to do.
parent e3b38b0d
No related branches found
No related tags found
No related merge requests found
......@@ -704,6 +704,7 @@ for output_file_number, (svd_bank_url_dict, output_url, ranking_stat_output_url,
output.close()
return outstr
template_ids = frozenset(row.template_id for row in sngl_inspiral_table)
assert len(template_ids) == len(sngl_inspiral_table), "template IDs are not unique within the template bank"
@bottle.route("/template_ids.txt")
def get_template_ids(template_ids = sorted(template_ids)):
return "\n".join("%d" % template_id for template_id in template_ids)
......
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