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

gstlal_inspiral: template IDs must be ints

- the template IDs are stored in the Gamma0 column, which is a float.  the ID values must be ints or the ranking statistic barfs.
parent fc0839f9
No related branches found
No related tags found
No related merge requests found
......@@ -678,7 +678,7 @@ for output_file_number, (svd_bank_url_dict, output_url, ranking_stat_output_url,
output.close()
return outstr
# FIXME: don't use Gamma0, switch to a proper column
template_ids = frozenset(sngl_inspiral_table.getColumnByName("Gamma0"))
template_ids = frozenset(map(int, sngl_inspiral_table.getColumnByName("Gamma0")))
@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