flrs / blend_modes

Python package that implements image blend modes
MIT License
140 stars 29 forks source link

Fix np.NAN error #30

Closed marcodemutti closed 2 weeks ago

marcodemutti commented 2 months ago

Fix error in the blending_functions.py file (fixes issue #29)

ratio[ratio == np.NAN] = 0.0

changed to:

ratio[np.isnan(ratio)] = 0.0
flrs commented 2 weeks ago

Should be fixed with #32, please reopen/comment if you see it otherwise. Thank you for your contribution!