summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-02-15 12:04:49 -0700
committerCharles Harris <charlesr.harris@gmail.com>2018-02-16 12:16:17 -0700
commit62a1d60285b689c1847b5be06e6417e47aecc241 (patch)
treef8332ea17605b3d90ff9f5dba3ce2621901c3a79
parent0fb3a898e039b3868f427c14f066b19f92f3e287 (diff)
downloadnumpy-62a1d60285b689c1847b5be06e6417e47aecc241.tar.gz
BUG: Functions in ma should not add Notes to existing docstrings.
Currently, the `doc_note` function in `numpy.ma.core.py` is called to add a "Notes" section to the existing docstrings of the unmasked versions of some functions. This may result in duplicate "Notes" sections, or incorrect placement, which are errors in current numpydoc. This PR disables the `doc_note` function until we can decide on the proper way to deal with the problem.
-rw-r--r--numpy/ma/core.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index 4008a1ece..57a4827ff 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -131,6 +131,12 @@ def doc_note(initialdoc, note):
return
if note is None:
return initialdoc
+
+ # FIXME: disable this function for the moment until we figure out what to
+ # do with it. Currently it may result in duplicate Notes sections or Notes
+ # sections in the wrong place
+ return initialdoc
+
newdoc = """
%s
@@ -7481,11 +7487,7 @@ def inner(a, b):
Returns the inner product of a and b for arrays of floating point types.
Like the generic NumPy equivalent the product sum is over the last dimension
- of a and b.
-
- Notes
- -----
- The first argument is not conjugated.
+ of a and b. The first argument is not conjugated.
"""
fa = filled(a, 0)