FAIL: Test some trivial edge cases for savgol_filter() #2947

rgommers opened this Issue Sep 29, 2013 · 0 comments


None yet

1 participant

SciPy member

OS X 10.8, MacPorts, reported by @cdeil:

FAIL: Test some trivial edge cases for savgol_filter().
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/nose/", line 198, in runTest
File "/Users/deil/temp/2013-09-25/scipy33/scipy/signal/tests/", line 155, in test_sg_filter_trivial
assert_equal(y, [1.0])
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/testing/", line 257, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/testing/", line 719, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/testing/", line 645, in assert_array_compare
raise AssertionError(msg)
Arrays are not equal

(mismatch 100.0%)
x: array([ 1.])
y: array([ 1.])

Floating point numbers should not be compared equal. Will send a fix now.

@rgommers rgommers closed this in bb528a3 Sep 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment