summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrigitta Sipocz <bsipocz@gmail.com>2019-10-17 13:22:42 -0700
committerBrigitta Sipocz <bsipocz@gmail.com>2019-10-17 13:22:42 -0700
commit129bcd74153cd498b742bde8346c690908aaa61c (patch)
treea43e34539c578d7073149bbb68ce1ea4e2e2427e
parent1d4cd73c520ff7f91aef598a80534504909fd05b (diff)
downloadnumpy-129bcd74153cd498b742bde8346c690908aaa61c.tar.gz
DOC: Adding two more fixes to make doctesting pass
-rw-r--r--doc/source/reference/maskedarray.generic.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/source/reference/maskedarray.generic.rst b/doc/source/reference/maskedarray.generic.rst
index 06bdb2e9b..41c3ee564 100644
--- a/doc/source/reference/maskedarray.generic.rst
+++ b/doc/source/reference/maskedarray.generic.rst
@@ -313,6 +313,9 @@ new valid values to them::
mask=[False, False, True],
fill_value=999999)
>>> x.soften_mask()
+ masked_array(data=[1, 2, --],
+ mask=[False, False, True],
+ fill_value=999999)
>>> x[-1] = 5
>>> x
masked_array(data=[1, 2, 5],
@@ -451,7 +454,7 @@ of anomalies (deviations from the average)::
>>> mx = ma.masked_values (x, -9999.)
>>> print(mx.mean())
2.0
- >>> print mx - mx.mean()
+ >>> print(mx - mx.mean())
[-2.0 -1.0 -- 1.0 2.0]
>>> print(mx.anom())
[-2.0 -1.0 -- 1.0 2.0]