From 1e19763a2ee63cb9df94a26d640d754e2ef4752f Mon Sep 17 00:00:00 2001 From: Chad Hanna <chad.hanna@ligo.org> Date: Mon, 4 Mar 2019 14:03:35 -0600 Subject: [PATCH] Update gstlal_inspiral_add_template_ids. Please see: https://en.wikipedia.org/wiki/Single-precision_floating-point_format#IEEE_754_single-precision_binary_floating-point_format:_binary32 --- gstlal-inspiral/bin/gstlal_inspiral_add_template_ids | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gstlal-inspiral/bin/gstlal_inspiral_add_template_ids b/gstlal-inspiral/bin/gstlal_inspiral_add_template_ids index aaedaa2d64..91ce10b2db 100755 --- a/gstlal-inspiral/bin/gstlal_inspiral_add_template_ids +++ b/gstlal-inspiral/bin/gstlal_inspiral_add_template_ids @@ -48,8 +48,8 @@ N = sum(len(lsctables.SnglInspiralTable.get_table(xmldoc)) for fname, xmldoc in # N get too close to the number of available IDs to keep the probability of # two ID sequences being the same small. -assert N < 50000000, "too many templates: increase size of draw space" -ids = sorted(random.sample(xrange(99999999), N)) +assert N < 5000000, "too many templates: increase size of draw space" +ids = sorted(random.sample(xrange(9999999), N)) # assign the IDs and write back to disk -- GitLab