Skip to content

Commit

Permalink
MAINT: flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
FirefoxMetzger committed May 13, 2021
1 parent 6676a62 commit 6debb11
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions imageio/plugins/pillow_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -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/
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 6debb11

Please sign in to comment.