Permalink
Browse files

REF remove local copies of scipy's nanstd, nanmean

  • Loading branch information...
1 parent 957aaba commit 150d7a0dc364daa6fd22dfe2b6e0585a578e6e1a @kwgoodman committed Dec 20, 2013
Showing with 2 additions and 4 deletions.
  1. +2 −4 bottleneck/benchmark/bench.py
@@ -213,9 +213,8 @@ def getsetups(setup, shapes, nans):
code = "bn.nanmean(a, axis=AXIS)"
else:
code = "func(a)"
- run['statements'] = [code, "scipy_nanmean(a, axis=AXIS)"]
+ run['statements'] = [code, "np.nanmean(a, axis=AXIS)"]
setup = """
- from bottleneck.slow.func import scipy_nanmean
func, a = bn.func.nanmean_selector(a, axis=AXIS)
"""
run['setups'] = getsetups(setup, shapes, nans)
@@ -230,9 +229,8 @@ def getsetups(setup, shapes, nans):
code = "bn.nanstd(a, axis=AXIS)"
else:
code = "func(a, 0)"
- run['statements'] = [code, "scipy_nanstd(a, axis=AXIS)"]
+ run['statements'] = [code, "np.nanstd(a, axis=AXIS)"]
setup = """
- from bottleneck.slow.func import scipy_nanstd
func, a = bn.func.nanstd_selector(a, axis=AXIS)
"""
run['setups'] = getsetups(setup, shapes, nans)

0 comments on commit 150d7a0

Please sign in to comment.