Skip to content
Snippets Groups Projects
Commit 2ca43a50 authored by Duncan Meacher's avatar Duncan Meacher Committed by Kipp Cannon
Browse files

gstlal_inspiral_pipe: Added template bank id check

parent ca4a2d1e
No related branches found
No related tags found
No related merge requests found
......@@ -1082,6 +1082,11 @@ def parse_command_line():
options, filenames = parser.parse_args()
if options.template_bank:
bank_xmldoc = ligolw_utils.load_filename(options.template_bank, verbose = options.verbose, contenthandler = LIGOLWContentHandler)
sngl_inspiral_table = lsctables.SnglInspiralTable.get_table(bank_xmldoc)
assert len(sngl_inspiral_table) == len(set([r.template_id for r in sngl_inspiral_table])), "Template bank ids are not unique"
if options.mass_model not in ("ligo", "file"):
raise ValueError("--mass-model must be 'ligo' or 'file'")
if options.mass_model == "file" and not options.mass_model_file:
......
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