diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2020-03-22 14:36:12 +0000 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2020-03-22 14:36:42 +0000 |
commit | 566c84bfda3ac656232600445442cdf74bc84569 (patch) | |
tree | fd5a8d260f2ea803990f3316f0c16a9394417f85 | |
parent | cf377c766d6ac8d72116bc71ad5c9d2f29996e03 (diff) | |
download | numpy-566c84bfda3ac656232600445442cdf74bc84569.tar.gz |
MAINT: Add missing deprecation dates and versions
-rw-r--r-- | numpy/lib/function_base.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 " |