PEP8 compliance!

This commit is contained in:
Marianne Corvellec
2013-06-29 17:55:54 -04:00
parent 9a45f82f1a
commit 4cf8e2744a
+2 -1
View File
@@ -74,7 +74,8 @@ def median_filter(image, radius=2, mask=None, percent=50):
ranked_image, translation = rank_order(image[mask])
max_ranked_image = np.max(ranked_image)
if max_ranked_image == 0:
warnings.warn('Very particular case? Returning copy of input image.')
warnings.warn('Very particular case? Returning copy of input
image.')
return image.copy()
if max_ranked_image > 255:
ranked_image = ranked_image * 255 // max_ranked_image