Skip to content

Commit

Permalink
removed pep8 errors in code
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyod committed Nov 2, 2018
1 parent 342aac7 commit 218300b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion KDEpy/BaseKDE.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(self, kernel: str, bw: float):

# Test quickly that the method has done what is was supposed to do
assert callable(self.kernel)
assert (isinstance(self.bw, (np.ndarray, Sequence, numbers.Number)) or
assert (isinstance(self.bw, (np.ndarray, Sequence, numbers.Number)) or
callable(self.bw))

@abstractmethod
Expand Down
3 changes: 2 additions & 1 deletion KDEpy/FFTKDE.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class FFTKDE(BaseKDE):
"""
r"""
This class implements a convolution (FFT) based computation of a KDE.
While this implementation is very fast, there are some limitations: (1) the
bandwidth must be constant, (2) the KDE must be evaluated on an
Expand Down Expand Up @@ -64,6 +64,7 @@ class FFTKDE(BaseKDE):
London ; New York: Chapman and Hall/CRC, 1995. Pages 182-192.
- Statsmodels implementation, at
``statsmodels.nonparametric.kde.KDEUnivariate``.
"""

def __init__(self, kernel='gaussian', bw=1, norm=2):
Expand Down
2 changes: 1 addition & 1 deletion KDEpy/kernel_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


def gauss_integral(n):
"""
r"""
Solve the integral
\int_0^1 exp(-0.5 * x * x) x^n dx
Expand Down

0 comments on commit 218300b

Please sign in to comment.