flrs / blend_modes

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

Fix np.NAN error #30

Open marcodemutti opened 1 month ago

marcodemutti commented 1 month 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