From 6ff8069fe0b96d05700b54b31d0f6037982631c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Wed, 22 Feb 2017 16:20:47 +0100 Subject: [PATCH] Bugfix in from_pick: type must be exp to be consistent! --- pylot/core/util/pdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylot/core/util/pdf.py b/pylot/core/util/pdf.py index 35a9b2f6..9fe8fe86 100644 --- a/pylot/core/util/pdf.py +++ b/pylot/core/util/pdf.py @@ -240,7 +240,7 @@ class ProbabilityDensityFunction(object): @classmethod def from_pick(self, lbound, barycentre, rbound, incr=0.001, decfact=0.01, - type='gauss'): + type='exp'): ''' Initialize a new ProbabilityDensityFunction object. Takes incr, lbound, barycentre and rbound to derive x0 and the number @@ -286,7 +286,7 @@ class ProbabilityDensityFunction(object): pdf = branches[type] # return the object - return ProbabilityDensityFunction(x0, incr, npts, pdf, barycentre, + return ProbabilityDensityFunction(x0, incr, npts, pdf, params, decfact) def broadcast(self, pdf, si, ei, data):