computationalgeography / lue

LUE Scientific Database and Environmental Modelling Framework
https://lue.computationalgeography.org
MIT License
12 stars 4 forks source link

Python wrapper for `where` doesn't handle np data types correctly #687

Open kordejong opened 3 months ago

kordejong commented 3 months ago

In case of where(condition, np.uint8(1), np.uint8(0)) the resulting array contains int32_t elements, instead of uint8_t elements.