Commit ae41f576 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed numpy data type DeprecationWarning.



Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent d43f0b99
......@@ -33,7 +33,7 @@ class _Mask(GeoArray):
_CLASSNAME = 'Mask baseclass'
def _validate_array_values(self, array):
if not array.dtype == np.bool:
if not array.dtype == bool:
if np.issubdtype(array.dtype, np.integer):
if array.min() < 0 or array.max() > 1:
pixelvals = sorted(list(np.unique(array)))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment