Skip to content

Commit

Permalink
Replace ImageMath.eval with ImageMath.lambda_eval
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Apr 8, 2024
1 parent 33a73b5 commit 3a92d4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion selftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ def testimage() -> None:
In 1.1.6, you can use the ImageMath module to do image
calculations.
>>> im = ImageMath.eval("float(im + 20)", im=im.convert("L"))
>>> im = ImageMath.lambda_eval( \
lambda args: args["float"](args["im"] + 20), im=im.convert("L") \
)
>>> im.mode, im.size
('F', (128, 128))
Expand Down

0 comments on commit 3a92d4a

Please sign in to comment.