f71c8a72acffc0ec4da9dff211de5bcded3a4056,scipy/ndimage/tests/test_measurements.py,,test_variance01,#,661
Before Change
def test_variance01():
olderr = np.seterr(all="ignore")
try:
for type in types:
input = np.array([], type)
output = ndimage.variance(input)
assert_(np.isnan(output))
finally:
np.seterr(**olderr)
After Change
def test_variance01():
olderr = np.seterr(all="ignore")
try:
with warnings.catch_warnings():
// Numpy 1.9 gives warnings for mean([])
warnings.filterwarnings("ignore", message="Mean of empty slice.")
for type in types:
input = np.array([], type)
output = ndimage.variance(input)
assert_(np.isnan(output))
finally:
np.seterr(**olderr)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances
Project Name: scipy/scipy
Commit Name: f71c8a72acffc0ec4da9dff211de5bcded3a4056
Time: 2014-01-18
Author: ralf.gommers@googlemail.com
File Name: scipy/ndimage/tests/test_measurements.py
Class Name:
Method Name: test_variance01
Project Name: scipy/scipy
Commit Name: f71c8a72acffc0ec4da9dff211de5bcded3a4056
Time: 2014-01-18
Author: ralf.gommers@googlemail.com
File Name: scipy/ndimage/tests/test_measurements.py
Class Name:
Method Name: test_variance01
Project Name: scipy/scipy
Commit Name: 63cc4047ae7450e7d2a257b7ee992eb06cd599ce
Time: 2013-12-30
Author: ralf.gommers@googlemail.com
File Name: scipy/stats/tests/test_continuous_basic.py
Class Name:
Method Name: test_moments
Project Name: scipy/scipy
Commit Name: 63cc4047ae7450e7d2a257b7ee992eb06cd599ce
Time: 2013-12-30
Author: ralf.gommers@googlemail.com
File Name: scipy/stats/tests/test_continuous_basic.py
Class Name:
Method Name: test_cont_basic
Project Name: Ambrosys/glyph
Commit Name: 85dce85d1b96b0e71cf4c0bce66ecfa435eafb65
Time: 2020-01-22
Author: markus.quade@ambrosys.de
File Name: examples/control/control_problem.py
Class Name:
Method Name: odeint