Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rgommers opened this issue Sep 29, 2013 · 0 comments
Closed

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

rgommers opened this issue Sep 29, 2013 · 0 comments
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.signal
Milestone

Comments

@rgommers
Copy link
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/case.py", line 198, in runTest
self.test(*self.arg)
File "/Users/deil/temp/2013-09-25/scipy33/scipy/signal/tests/test_savitzky_golay.py", 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/utils.py", 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/utils.py", 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/utils.py", line 645, in assert_array_compare
raise AssertionError(msg)
AssertionError:
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.signal
Projects
None yet
Development

No branches or pull requests

1 participant