From 2a55233b81a6ea18a57d1dd4f7bc5fff9f2fb681 Mon Sep 17 00:00:00 2001 From: Pierre de Buyl Date: Tue, 6 Sep 2016 14:42:08 +0200 Subject: DOC: change Numpy to NumPy in dosctrings and comments The strings in error messages were left untouched --- numpy/lib/function_base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'numpy/lib/function_base.py') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index b74e04028..11cfb2c99 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -489,8 +489,8 @@ def histogram(a, bins=10, range=None, normed=False, weights=None, based on the actual data within `range`, the bin count will fill the entire range including portions containing no data. normed : bool, optional - This keyword is deprecated in Numpy 1.6 due to confusing/buggy - behavior. It will be removed in Numpy 2.0. Use the ``density`` + This keyword is deprecated in NumPy 1.6 due to confusing/buggy + behavior. It will be removed in NumPy 2.0. Use the ``density`` keyword instead. If ``False``, the result will contain the number of samples in each bin. If ``True``, the result is the value of the probability *density* function at the bin, @@ -809,7 +809,7 @@ def histogram(a, bins=10, range=None, normed=False, weights=None, else: return n, bins else: - # deprecated, buggy behavior. Remove for Numpy 2.0 + # deprecated, buggy behavior. Remove for NumPy 2.0 if normed: db = array(np.diff(bins), float) return n/(n*db).sum(), bins -- cgit v1.2.1 From db0b231f17fb2148772181626235e2644eb67c3e Mon Sep 17 00:00:00 2001 From: Pierre de Buyl Date: Wed, 7 Sep 2016 09:48:40 +0200 Subject: DOC: change version references from x.y to x.y.z --- numpy/lib/function_base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'numpy/lib/function_base.py') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 11cfb2c99..cb1a04f47 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -489,8 +489,8 @@ def histogram(a, bins=10, range=None, normed=False, weights=None, based on the actual data within `range`, the bin count will fill the entire range including portions containing no data. normed : bool, optional - This keyword is deprecated in NumPy 1.6 due to confusing/buggy - behavior. It will be removed in NumPy 2.0. Use the ``density`` + This keyword is deprecated in NumPy 1.6.0 due to confusing/buggy + behavior. It will be removed in NumPy 2.0.0. Use the ``density`` keyword instead. If ``False``, the result will contain the number of samples in each bin. If ``True``, the result is the value of the probability *density* function at the bin, @@ -809,7 +809,7 @@ def histogram(a, bins=10, range=None, normed=False, weights=None, else: return n, bins else: - # deprecated, buggy behavior. Remove for NumPy 2.0 + # deprecated, buggy behavior. Remove for NumPy 2.0.0 if normed: db = array(np.diff(bins), float) return n/(n*db).sum(), bins -- cgit v1.2.1