diff options
author | Brigitta Sipocz <bsipocz@gmail.com> | 2019-10-17 13:22:42 -0700 |
---|---|---|
committer | Brigitta Sipocz <bsipocz@gmail.com> | 2019-10-17 13:22:42 -0700 |
commit | 129bcd74153cd498b742bde8346c690908aaa61c (patch) | |
tree | a43e34539c578d7073149bbb68ce1ea4e2e2427e | |
parent | 1d4cd73c520ff7f91aef598a80534504909fd05b (diff) | |
download | numpy-129bcd74153cd498b742bde8346c690908aaa61c.tar.gz |
DOC: Adding two more fixes to make doctesting pass
-rw-r--r-- | doc/source/reference/maskedarray.generic.rst | 5 |
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] |