summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-05-14 15:34:53 -0600
committerCharles Harris <charlesr.harris@gmail.com>2014-05-15 01:13:22 -0600
commit62e4561f20ff681d321765d1083d3fde8db9a9f2 (patch)
treed20e62d4b7b17a04e298799e01feeb53450751be /doc
parent13b32e9d157a0ce62c0aa7d1447ad53fbb23d930 (diff)
downloadnumpy-62e4561f20ff681d321765d1083d3fde8db9a9f2.tar.gz
ENH: Add the scipy NumpyVersion class.
The class is in numpy/lib/_version.py and can be used to compare numpy versions when the version goes to double digits.
Diffstat (limited to 'doc')
-rw-r--r--doc/release/1.9.0-notes.rst22
1 files changed, 18 insertions, 4 deletions
diff --git a/doc/release/1.9.0-notes.rst b/doc/release/1.9.0-notes.rst
index 9aa39342a..4ecacaf9e 100644
--- a/doc/release/1.9.0-notes.rst
+++ b/doc/release/1.9.0-notes.rst
@@ -17,6 +17,7 @@ Dropped Support
* The numpy/testing/numpytest.py file has been removed together with
the importall function it contained.
+
Future Changes
==============
@@ -25,9 +26,11 @@ Future Changes
Numpy 1.10.0. This will certainly break some code that is currently
ignoring the warning.
* Relaxed stride checking will be the default in 1.10.0
-* String version checks will break because, e.g., '1.9' > '1.10' is True.
+* String version checks will break because, e.g., '1.9' > '1.10' is True. A
+ NumpyVersion class has been added that can be used for such comparisons.
* The diagonal and diag functions will return writeable views in 1.10.0
+
Compatibility notes
===================
@@ -120,6 +123,7 @@ Applications that now fail can be fixed by masking the higher 32 bit values to
zero: ``seed = seed & 0xFFFFFFFF``. This is what is done silently in older
versions so the random stream remains the same.
+
New Features
============
@@ -178,11 +182,20 @@ this new boolean argument.
The number of times each unique item comes up in the input can now be
obtained as an optional return value.
-Support for median in nanfunctions
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Taking the median of an ``ndarray`` while ignoring the nans in an array
+Support for median in nanfunctions
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Taking the median of an ``ndarray`` while ignoring the nans in an array
was added with the ``np.nanmedian`` function.
+NumpyVersion class added
+~~~~~~~~~~~~~~~~~~~~~~~~
+The class may be imported from numpy.lib and can be used for version
+comparison when the numpy version goes to 1.10.devel. For example::
+
+ >>> from numpy.lib import NumpyVersion
+ >>> if NumpyVersion(np.__version__) < '1.10.0'):
+ ... print('Wow, that is an old NumPy version!')
+
Improvements
============
@@ -243,6 +256,7 @@ MaskedArray support for more complicated base classes
Built-in assumptions that the baseclass behaved like a plain array are being
removed. In particalur, ``repr`` and ``str`` should now work more reliably.
+
Changes
=======