Skip to content
Snippets Groups Projects
Commit 6125520f authored by Laurent Mercadier's avatar Laurent Mercadier
Browse files

Merge branch 'knife_edge_bool' into 'master'

stop using np.bool in knife_edge.py

See merge request !284
parents a999d5b3 64395639
No related branches found
No related tags found
1 merge request!284stop using np.bool in knife_edge.py
Pipeline #131730 passed
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment