Skip to content
Snippets Groups Projects

stop using np.bool in knife_edge.py

Merged Laurent Mercadier requested to merge knife_edge_bool into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -148,7 +148,7 @@ def arrays_to1d(arrX: np.ndarray, arrY: np.ndarray):
def range_mask(array, minimum=None, maximum=None):
"""Retrieve the resulting array from the given minimum and maximum
"""
default = np.ones(array.shape, dtype=np.bool)
default = np.ones(array.shape, dtype=bool)
min_slice, max_slice = default, default
if minimum is not None:
if minimum > np.nanmax(array):
Loading