From 1f13a4984ff3255c1c6eba9d97bbae97c4c25e59 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 29 Aug 2016 03:47:44 +0300 Subject: fix Pylint warnings --- gaussian.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gaussian.py') diff --git a/gaussian.py b/gaussian.py index 743b70d..2e5ad90 100644 --- a/gaussian.py +++ b/gaussian.py @@ -31,8 +31,8 @@ def convolve(img, kernel): DEFAULT_SIGMA = 1. DEFAULT_RADIUS = 1 -def do(img_path, radius=DEFAULT_RADIUS, sigma=DEFAULT_SIGMA, - output_path=None): +def gaussian(img_path, radius=DEFAULT_RADIUS, sigma=DEFAULT_SIGMA, + output_path=None): img = cv2.imread(img_path, cv2.IMREAD_GRAYSCALE) kernel = gen_kernel(radius, sigma) @@ -65,7 +65,7 @@ def _parse_args(args=sys.argv): return parser.parse_args(args[1:]) def main(args=sys.argv): - do(**vars(_parse_args(args))) + gaussian(**vars(_parse_args(args))) if __name__ == '__main__': main() -- cgit v1.2.3