From d6917048bf92477bc26576b010b076b49b0da1b2 Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Fri, 18 Oct 2019 22:28:00 +0100 Subject: closes #370 (#395) closes #370 --- Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Wrappers/Python') diff --git a/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py b/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py index a6c9545..4239423 100644 --- a/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py +++ b/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py @@ -45,7 +45,7 @@ class KullbackLeibler(Function): super(KullbackLeibler, self).__init__() self.b = data - self.bnoise = 0 + self.bnoise = data * 0. def __call__(self, x): -- cgit v1.2.3