Commit 4d19f1ee authored by Chad Hanna's avatar Chad Hanna Committed by Chad Hanna

gstlal_inspiral_create_prior_diststats: prevent chisq dof from being too small


(cherry picked from commit 1142460c)
parent 14054e41
Pipeline #79183 passed with stages
in 30 minutes and 28 seconds
......@@ -119,7 +119,8 @@ def parse_command_line():
bandwidths += [templates.bandwidth(row.mass1, row.mass2, row.spin1z, row.spin2z, f_min = 10.0, f_max = row.f_final, delta_f = 0.25, psd = psd[ifo])]
horizon_factors.update(bank.horizon_factors)
if options.df == "bandwidth":
options.df = int(min(bandwidths))
# don't let the bandwidth get too small
options.df = max(int(min(bandwidths)) + 1, 10)
return options, process_params, filenames, template_ids, horizon_factors
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment