summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-04-17 11:11:18 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2019-04-17 11:11:18 +0100
commit6298d6c736ffd36354635ab7a335f57fb3bd060f (patch)
treeb7065685a29a5b8f7810285c57d0b873649a1bb3 /Wrappers/Python
parent37feb345eae9f3598f38b8f587be62e2107bd0f4 (diff)
downloadframework-6298d6c736ffd36354635ab7a335f57fb3bd060f.tar.gz
framework-6298d6c736ffd36354635ab7a335f57fb3bd060f.tar.bz2
framework-6298d6c736ffd36354635ab7a335f57fb3bd060f.tar.xz
framework-6298d6c736ffd36354635ab7a335f57fb3bd060f.zip
fix call
Diffstat (limited to 'Wrappers/Python')
-rw-r--r--Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py b/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py
index e7e41f7..d4370a8 100644
--- a/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py
+++ b/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py
@@ -48,7 +48,7 @@ class KullbackLeibler(Function):
if self.sum_value==numpy.inf:
return numpy.inf
else:
- tmp = self.sum_value
+ tmp = self.sum_value.copy()
#tmp.fill( numpy.log(tmp.as_array()) )
self.log(tmp)
return (x - self.b * tmp ).sum()