Skip to content

Commit

Permalink
Adapt test for simulateQSNR
Browse files Browse the repository at this point in the history
  • Loading branch information
ggventurini committed Jun 9, 2015
1 parent 40fb64d commit ac0454c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deltasigma/tests/test_simulateQSNR.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def setUp(self):
-7, -6, -5, -4, -3, -2, -1, 0])


def test_simulateSNR_4(self):
def test_simulateQSNR(self):
"""Test function for simulateSNR() 4/4"""
order = 4
osr = 32
Expand All @@ -51,6 +51,6 @@ def test_simulateSNR_4(self):
FullScale = M
ntf0 = ds.synthesizeQNTF(order, osr, f0, NG, ING)
ABCD = ds.realizeQNTF(ntf0, form, True)
a, b = ds.simulateSNR(ABCD, osr, None, f0, nlev);
a, b = ds.simulateQSNR(ABCD, osr, None, f0, nlev);
assert np.allclose(a[6:], self.SNR_ref, atol=6, rtol=1e-3)
assert np.allclose(b[5:], self.AMP_ref, atol=1)

0 comments on commit ac0454c

Please sign in to comment.