Commit 935fb78a authored by Heather Fong's avatar Heather Fong Committed by Patrick Godwin

gstlal_inspiral_mass_model: uniform-template probabilities should not be normalized

parent 5f4fda2b
......@@ -156,7 +156,10 @@ norm = numpy.sum(prob.values())
chirpmasses = numpy.array([mchirps[tid] for tid in ids])
coefficients = numpy.zeros((1, 1, len(ids)+1), dtype=float)
for idx, tid in enumerate(ids):
coefficients[0,0,idx] = numpy.log(prob[tid]) - numpy.log(norm)
if options.model == "uniform-template":
coefficients[0,0,idx] = numpy.log(prob[tid])
coefficients[0,0,idx] = numpy.log(prob[tid]) - numpy.log(norm)
#import matplotlib
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