Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ENH lar.nan_replace() is faster; uses bn.replace()

  • Loading branch information...
commit dc2dc23305d4c6a677b74a5e2c5d87e5d8d6d96d 1 parent 370a09e
@kwgoodman authored
Showing with 5 additions and 4 deletions.
  1. +2 −2 README.rst
  2. +1 −0  RELEASE.rst
  3. +2 −2 la/deflarry.py
View
4 README.rst
@@ -70,7 +70,7 @@ Install
Requirements:
======================== ====================================================
-la Python, NumPy 1.5.1-1.6.1, Bottleneck 0.5.0
+la Python, NumPy 1.5.1-1.6.2, Bottleneck 0.6.0
Unit tests nose
======================== ====================================================
@@ -79,7 +79,7 @@ Optional:
============================= ================================================
Archive larrys in HDF5 h5py, HDF 1.8
Compile for speed boost gcc or MinGW
-lar.ranking(norm='gaussian') SciPy 0.8.0, 0.9.0
+lar.ranking(norm='gaussian') SciPy 0.8, 0.9, 0.10
============================= ================================================
You can download the `latest version of la <http://pypi.python.org/pypi/la>`_
View
1  RELEASE.rst
@@ -21,6 +21,7 @@ la 0.7
- larry.merge() when update=True, larry.morph(), larry.morph_like()
- larry.take()
- larry.sortaxis()
+- larry.nan_replace()
**Breakage from la 0.6**
View
4 la/deflarry.py
@@ -3918,8 +3918,8 @@ def nan_replace(self, replace_with=0):
"""
y = self.copy()
- np.putmask(y.x, np.isnan(y.x), replace_with)
- return y
+ bn.replace(y.x, np.nan, replace_with)
+ return y
# Size, shape, type ------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.