Skip to content

Commit

Permalink
Relative import failed, reverting manually.
Browse files Browse the repository at this point in the history
  • Loading branch information
drphilmarshall committed Dec 7, 2016
1 parent 09aaabd commit 13cfb73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qp/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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)

0 comments on commit 13cfb73

Please sign in to comment.