Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved test coverage #2

Closed
wants to merge 4 commits into from

Conversation

radarhere
Copy link

@radarhere radarhere commented May 3, 2022

Another suggestion for python-pillow#6254

I can see at https://github.com/python-pillow/Pillow/pull/6254/files that two lines are not covered by the tests.

This should fix that.

benrg and others added 4 commits April 30, 2022 23:06
In modes I and F, Image.point only supported affine expressions of the
forms (lambda x:) x * a, x + a, and x * a + b. Expressions like 1 - x
had to be written x * -1 + 1.

This rewrite, though still limited to affine transformations, supports
far more expression forms, including 1 - x, (2 * x + 1) / 3, etc.
* Removed unused import

* Restored existing checks

* Restored coerce_e, _E and data property

* Deprecated coerce_e

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
benrg pushed a commit that referenced this pull request May 3, 2022
@benrg
Copy link
Owner

benrg commented May 3, 2022

I manually merged this. Thanks for the help.

@benrg benrg closed this May 3, 2022
@radarhere radarhere deleted the affine-transform branch May 3, 2022 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants