From a9512327021e35f5419a3287e2afd141ebe0e6da Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Sun, 7 Jul 2013 22:44:41 -0500 Subject: [PATCH] Remove `from_path` and `from_array` methods Having these methods and the constructor arguments is a bit redundant. --- skimage/novice/_novice.py | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/skimage/novice/_novice.py b/skimage/novice/_novice.py index 6ab629ad..6a1dc066 100644 --- a/skimage/novice/_novice.py +++ b/skimage/novice/_novice.py @@ -309,23 +309,6 @@ class Picture(object): self._modified = False self.scale = 1 - @staticmethod - def from_path(path): - """Creates a Picture from an image file. - - Parameters - ---------- - path : str - Path to the image file. - - Returns - ------- - pic : Picture - A Picture with the image file data loaded. - - """ - return Picture(path=path) - @staticmethod def from_size(size, color='black'): """Return a Picture of the specified size and a uniform color. @@ -344,26 +327,6 @@ class Picture(object): array = np.ones(rgb_size, dtype=np.uint8) * color return Picture(array=array) - @staticmethod - def from_array(array): - """Creates a single color Picture. - - Parameters - ---------- - color : tuple - RGB tuple with the fill color for the picture [0-255] - - size : tuple - Width and height of the picture in pixels. - - Returns - ------- - pic : Picture - A Picture with the given color and size. - - """ - return Picture(array=array) - def save(self, path): """Saves the picture to the given path.