Skip to content

Commit

Permalink
pep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
grlee77 committed Oct 21, 2020
1 parent f934bd2 commit eeca386
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion cupyx/scipy/ndimage/_spline_prefilter_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ def _get_spline1d_code(mode, poles, n_boundary):
def get_raw_spline1d_kernel(axis, ndim, mode, order, index_type="int",
data_type="double", pole_type="double",
block_size=128):

"""Generate a kernel for applying a spline prefilter along a given axis."""
poles = get_poles(order)

Expand Down
12 changes: 4 additions & 8 deletions cupyx/scipy/ndimage/interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ def _get_spline_output(input, output, allow_float32=False):
return temp, float_dtype, output_dtype


def spline_filter1d(
input, order=3, axis=-1, output=cupy.float64, mode="mirror", *,
allow_float32=False,
):
def spline_filter1d(input, order=3, axis=-1, output=cupy.float64,
mode="mirror", *, allow_float32=False):
"""
Calculate a 1-D spline filter along the given axis.
Expand Down Expand Up @@ -165,10 +163,8 @@ def spline_filter1d(
return temp.astype(output_dtype, copy=False)


def spline_filter(
input, order=3, output=numpy.float64, mode="mirror", *,
allow_float32=False
):
def spline_filter(input, order=3, output=numpy.float64, mode="mirror", *,
allow_float32=False):
"""Multidimensional spline filter.
Args:
Expand Down

0 comments on commit eeca386

Please sign in to comment.