From 566c84bfda3ac656232600445442cdf74bc84569 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Sun, 22 Mar 2020 14:36:12 +0000 Subject: MAINT: Add missing deprecation dates and versions --- numpy/lib/function_base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'numpy/lib/function_base.py') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index b3ad433cd..6c7786860 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -4345,6 +4345,7 @@ def delete(arr, obj, axis=None): # After removing the special handling of booleans and out of # bounds values, the conversion to the array can be removed. if obj.dtype == bool: + # 2012-10-11, NumPy 1.8 warnings.warn("in the future insert will treat boolean arrays and " "array-likes as boolean index instead of casting it " "to integer", FutureWarning, stacklevel=3) @@ -4382,7 +4383,7 @@ def delete(arr, obj, axis=None): # Test if there are out of bound indices, this is deprecated inside_bounds = (obj < N) & (obj >= -N) if not inside_bounds.all(): - # 2013-09-24, 1.9 + # 2013-09-24, NumPy 1.9 warnings.warn( "in the future out of bounds indices will raise an error " "instead of being ignored by `numpy.delete`.", @@ -4390,6 +4391,7 @@ def delete(arr, obj, axis=None): obj = obj[inside_bounds] positive_indices = obj >= 0 if not positive_indices.all(): + # 2013-04-11, NumPy 1.8 warnings.warn( "in the future negative indices will not be ignored by " "`numpy.delete`.", FutureWarning, stacklevel=3) @@ -4539,6 +4541,7 @@ def insert(arr, obj, values, axis=None): indices = np.array(obj) if indices.dtype == bool: # See also delete + # 2012-10-11, NumPy 1.8 warnings.warn( "in the future insert will treat boolean arrays and " "array-likes as a boolean index instead of casting it to " -- cgit v1.2.1