From 80629c34bbc11c6256187ea4fa113d3110494b94 Mon Sep 17 00:00:00 2001 From: Leena P Date: Sat, 11 Jul 2015 18:23:49 -0400 Subject: [PATCH] Use a simpler operator in the novice tutorial Using a more explicit series of operations is simpler than using the compound "=/" operator, which may be unfamilar to newer users of Python. --- skimage/novice/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/novice/__init__.py b/skimage/novice/__init__.py index d63d670d..0739ca76 100644 --- a/skimage/novice/__init__.py +++ b/skimage/novice/__init__.py @@ -65,7 +65,7 @@ and know their location in the picture. >>> for pixel in picture: ... if (pixel.red > 128) and (pixel.x < picture.width): -... pixel.red /= 2 +... pixel.red = pixel.red / 2 Pictures know if they've been modified from the original file