summaryrefslogtreecommitdiff
path: root/numpy/ma
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-15 12:04:49 -0700
commitb17fc16c248a54777dbf7731aa57af6f42881390 (patch)
tree1f905e3bd50e2210fabedef18857e8b858f7ed94 /numpy/ma
parent4e5513f2edb270aa6f9b48d8e26f208a02d0b562 (diff)
downloadnumpy-b17fc16c248a54777dbf7731aa57af6f42881390.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.
Diffstat (limited to 'numpy/ma')
-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 9223c5705..698d39cda 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
@@ -7472,11 +7478,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)