Commit 0e1f0a03 authored by Kipp Cannon's avatar Kipp Cannon

rate.BinnedLnPDF: fix initial normalization

- should have been -inf, call self.normalize() to do whatever's correct.
Original: 8d0d216ce8e38d3935329eba5d879c6132f8e09f
parent fab98eef
......@@ -2049,7 +2049,7 @@ class BinnedLnPDF(BinnedDensity):
"""
def __init__(self, *args, **kwargs):
super(BinnedLnPDF, self).__init__(*args, **kwargs)
self.norm = 0.0
self.normalize()
def __getitem__(self, coords):
return numpy.log(super(BinnedLnPDF, self).__getitem__(coords)) - self.norm
......
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