Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d3b468

Browse files
committed
[skip-ci] PEP8
1 parent dfbc39d commit 9d3b468

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/matplotlib/tests/test_agg.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ def test_agg_filter():
165165
def smooth1d(x, window_len):
166166
# copied from http://www.scipy.org/Cookbook/SignalSmooth
167167

168-
s = np.r_[2*x[0] - x[window_len:1:-1], x, 2*x[-1] - x[-1:-window_len:-1]]
168+
s = np.r_[2*x[0] - x[window_len:1:-1],
169+
x,
170+
2*x[-1] - x[-1:-window_len:-1]]
169171
w = np.hanning(window_len)
170172
y = np.convolve(w/w.sum(), s, mode='same')
171173
return y[window_len-1:-window_len+1]
@@ -182,7 +184,6 @@ def smooth2d(A, sigma=3):
182184
class BaseFilter(object):
183185
def prepare_image(self, src_image, dpi, pad):
184186
ny, nx, depth = src_image.shape
185-
#tgt_image = np.zeros([pad*2+ny, pad*2+nx, depth], dtype="d")
186187
padded_src = np.zeros([pad*2 + ny, pad*2 + nx, depth], dtype="d")
187188
padded_src[pad:-pad, pad:-pad, :] = src_image[:, :, :]
188189

0 commit comments

Comments
 (0)