Skip to content
Snippets Groups Projects
Commit d13b8021 authored by Martin Teichmann's avatar Martin Teichmann
Browse files

stop using np.bool

this does not exist anymore
parent a999d5b3
No related branches found
No related tags found
1 merge request!282stop using np.bool
Pipeline #130832 passed
...@@ -148,7 +148,7 @@ def arrays_to1d(arrX: np.ndarray, arrY: np.ndarray): ...@@ -148,7 +148,7 @@ def arrays_to1d(arrX: np.ndarray, arrY: np.ndarray):
def range_mask(array, minimum=None, maximum=None): def range_mask(array, minimum=None, maximum=None):
"""Retrieve the resulting array from the given minimum and maximum """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 min_slice, max_slice = default, default
if minimum is not None: if minimum is not None:
if minimum > np.nanmax(array): 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