From f47c5a7be7ee9b9b3972999266dff530a7bdce52 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Fri, 5 Jul 2013 23:04:54 -0500 Subject: [PATCH] Switch argument order for clarity --- skimage/novice/_novice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/novice/_novice.py b/skimage/novice/_novice.py index bc39e4a1..dafad67d 100644 --- a/skimage/novice/_novice.py +++ b/skimage/novice/_novice.py @@ -253,12 +253,12 @@ class Picture(object): ---------- path : str Path to an image file to load. + image : array + Raw RGB image data [0-255] size : tuple Size of the empty image to create (width, height). color : tuple Color to fill empty image if size is given (red, green, blue) [0-255]. - image : array_like - Raw RGB image data [0-255] Notes ----- @@ -296,7 +296,7 @@ class Picture(object): >>> pic[:, pic.height-1] = (255, 0, 0) """ - def __init__(self, path=None, size=None, color=None, image=None): + def __init__(self, path=None, image=None, size=None, color=None): # Can only provide either path or size, but not both. if (path and size) or (path and image) or (size and image): assert False, "Can only provide path, size, or image."