2b9b1d91e822b1ca649fd4e01c9c5c402246b7f3,scipy/stats/tests/test_stats.py,TestNanFunc,test_nanstd_all,#TestNanFunc#,153
Before Change
def test_nanstd_all(self):
// Check nanstd when all values are nan.
olderr = np.seterr(all="ignore")
try:
s = stats.nanstd(self.Xall)
finally:
np.seterr(**olderr)
After Change
def test_nanstd_all(self):
// Check nanstd when all values are nan.
with warnings.catch_warnings():
warns = (DeprecationWarning, RuntimeWarning)
warnings.simplefilter("ignore", warns)
s = stats.nanstd(self.Xall)
assert_(np.isnan(s))
def test_nanstd_bias_kw(self):
s = stats.nanstd(self.X, bias=True)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: scipy/scipy
Commit Name: 2b9b1d91e822b1ca649fd4e01c9c5c402246b7f3
Time: 2014-11-03
Author: evgeni@burovski.me
File Name: scipy/stats/tests/test_stats.py
Class Name: TestNanFunc
Method Name: test_nanstd_all
Project Name: scipy/scipy
Commit Name: 2b9b1d91e822b1ca649fd4e01c9c5c402246b7f3
Time: 2014-11-03
Author: evgeni@burovski.me
File Name: scipy/stats/tests/test_stats.py
Class Name: TestNanFunc
Method Name: test_nanmean_all
Project Name: scipy/scipy
Commit Name: 0db98b94a470a40ad1da0a781d108f0e20e09185
Time: 2017-08-29
Author: warren.weckesser@gmail.com
File Name: scipy/stats/_binned_statistic.py
Class Name:
Method Name: binned_statistic_dd