Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

REF remove deprecated lar.movingsum()

  • Loading branch information...
commit 8b6bcd457455dfba8c9f033f1c22e9543ff295a3 1 parent 79b5a5c
@kwgoodman authored
Showing with 2 additions and 10 deletions.
  1. +1 −0  RELEASE.rst
  2. +1 −7 la/deflarry.py
  3. +0 −3  la/farray/move.py
View
1  RELEASE.rst
@@ -32,6 +32,7 @@ la 0.7
**Breakage from la 0.6**
- Numpy array version of move_median() removed since bottleneck now used
+- deprecated lar.movingsum() removed (use the faster lar.move_sum() instead)
**Bug fixes**
View
8 la/deflarry.py
@@ -10,7 +10,7 @@
from la.util.misc import isscalar, fromlists
from la.farray import (group_ranking, group_mean, group_median, shuffle,
push, quantile, ranking, lastrank, movingsum_forward,
- movingsum, geometric_mean, demean, demedian, zscore)
+ geometric_mean, demean, demedian, zscore)
from la.farray import (move_nanmedian, move_nanranking, move_func)
@@ -3052,12 +3052,6 @@ def move_func(self, func, window, axis=-1, method='loop', **kwargs):
x = move_func(func, self.x, window, axis=axis, method=method)
return larry(x, self.copylabel(), validate=False)
- @np.deprecate(new_name='move_sum')
- def movingsum(self, window, axis=-1, norm=False):
- y = self.copy()
- y.x = movingsum(y.x, window, axis=axis, norm=norm)
- return y
-
def movingsum_forward(self, window, skip=0, axis=-1, norm=False):
"""Movingsum in the forward direction skipping skip dates"""
y = self.copy()
View
3  la/farray/move.py
@@ -240,9 +240,6 @@ def move_func_strides(func, arr, window, axis=-1, **kwargs):
ynan[index] = y
return ynan
-# DEPRECATED ----------------------------------------------------------------
-
-@np.deprecate(new_name='move_nansum')
def movingsum(arr, window, skip=0, axis=-1, norm=False):
"""
Moving sum ignoring NaNs, optionally normalized for missing (NaN) data.
Please sign in to comment.
Something went wrong with that request. Please try again.