From 6debb110685a26899197b8b224cc9d4ff92cee6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Wallk=C3=B6tter?= Date: Thu, 13 May 2021 13:07:59 +0200 Subject: [PATCH] MAINT: flake8 --- imageio/plugins/pillow_legacy.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/imageio/plugins/pillow_legacy.py b/imageio/plugins/pillow_legacy.py index 540410a14..b8046daae 100644 --- a/imageio/plugins/pillow_legacy.py +++ b/imageio/plugins/pillow_legacy.py @@ -25,10 +25,10 @@ GENERIC_DOCS = """ Parameters for reading ---------------------- - + pilmode : str From the Pillow documentation: - + * 'L' (8-bit pixels, grayscale) * 'P' (8-bit pixels, mapped to any other mode using a color palette) * 'RGB' (3x8-bit pixels, true color) @@ -37,14 +37,14 @@ * 'YCbCr' (3x8-bit pixels, color video format) * 'I' (32-bit signed integer pixels) * 'F' (32-bit floating point pixels) - + PIL also provides limited support for a few special modes, including 'LA' ('L' with alpha), 'RGBX' (true color with padding) and 'RGBa' (true color with premultiplied alpha). - + When translating a color image to grayscale (mode 'L', 'I' or 'F'), the library uses the ITU-R 601-2 luma transform:: - + L = R * 299/1000 + G * 587/1000 + B * 114/1000 as_gray : bool If True, the image is converted using mode 'F'. When `mode` is @@ -653,7 +653,7 @@ def save_pillow_close(im): im.close() -## Func from skimage +# Func from skimage # This cells contains code from scikit-image, in particular from # http://github.com/scikit-image/scikit-image/blob/master/ @@ -833,10 +833,10 @@ def ndarray_to_pil(arr, format_str=None, prefer_uint8=True): return Image.fromarray(arr, mode) -## End of code from scikit-image +# End of code from scikit-image -from .pillowmulti import GIFFormat, TIFFFormat +from .pillowmulti import GIFFormat, TIFFFormat # noqa: E402 IGNORE_FORMATS = "MPEG"