Skip to content

Commit

Permalink
TST: signal: loosen some error tolerances in the filter tests. Closes g…
Browse files Browse the repository at this point in the history
  • Loading branch information
WarrenWeckesser committed Feb 27, 2014
1 parent 4b4620b commit 95b63d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scipy/signal/tests/test_filter_design.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def test_bandstop(self):


assert_equal(N, 10) assert_equal(N, 10)
assert_allclose(Wn, [0.19926249974781743, 0.50125246585567362], assert_allclose(Wn, [0.19926249974781743, 0.50125246585567362],
rtol=1e-15) rtol=1e-6)


def test_analog(self): def test_analog(self):
wp = [20, 50] wp = [20, 50]
Expand Down Expand Up @@ -821,7 +821,7 @@ def test_bandpass(self):
assert_array_equal(z, z2) assert_array_equal(z, z2)
assert_allclose(sorted(p, key=np.imag), assert_allclose(sorted(p, key=np.imag),
sorted(p2, key=np.imag), rtol=1e-13) sorted(p2, key=np.imag), rtol=1e-13)
assert_allclose(k, k2, rtol=1e-15) assert_allclose(k, k2, rtol=1e-13)


# bandpass analog # bandpass analog
z, p, k = butter(4, [90.5, 110.5], 'bp', analog=True, output='zpk') z, p, k = butter(4, [90.5, 110.5], 'bp', analog=True, output='zpk')
Expand Down

0 comments on commit 95b63d1

Please sign in to comment.