From 13cfb7313198364a2ebca3aadc345836e719d287 Mon Sep 17 00:00:00 2001 From: Phil Marshall Date: Wed, 7 Dec 2016 04:34:31 -0800 Subject: [PATCH] Relative import failed, reverting manually. --- qp/pdf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qp/pdf.py b/qp/pdf.py index 26479a54..c3e6932f 100644 --- a/qp/pdf.py +++ b/qp/pdf.py @@ -2,7 +2,7 @@ import scipy.interpolate as spi import matplotlib.pyplot as plt -from .utils import calculate_kl_divergence, calculate_rms +import qp class PDF(object): @@ -257,7 +257,7 @@ def kld(self, limits=(0., 1.), dx=0.01): print('Truth not available for comparison.') return else: - KL = calculate_kl_divergence(self, self, limits=limits, dx=dx) + KL = qp.utils.calculate_kl_divergence(self, self, limits=limits, dx=dx) return(KL) def rms(self, limits=(0., 1.), dx=0.01): @@ -287,5 +287,5 @@ def rms(self, limits=(0., 1.), dx=0.01): print('Truth not available for comparison.') return else: - RMS = calculate_rms(self, self, limits=limits, dx=dx) + RMS = qp.utils.calculate_rms(self, self, limits=limits, dx=dx) return(RMS)