Skip to content

Commit

Permalink
Update test_scaleABCD.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Fukuda authored Jan 7, 2022
1 parent 12dad85 commit ca650ea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions deltasigma/tests/test_scaleABCD.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,9 @@ def test_scaleABCD(self):
# this is a rather high relative error. We get it on Travis-CI
# Probably related to the libs used?
self.assertTrue(np.allclose(ABCD, self.ABCD_ref, atol=1e-2, rtol=30e-2))
if not np.allclose(umax, self.umax_ref, atol=1e-4, rtol=1e-3):
# An error occured on Vanilla Python 3.8
print("umax = ", umax)
print("self.umax_ref = ", self.umax_ref)
self.assertTrue(np.allclose(umax, self.umax_ref, atol=1e-4, rtol=1e-3))
print("umax = ", umax)
print("self.umax_ref = ", self.umax_ref)
self.assertTrue(np.allclose(np.diag(S), self.Sdiag_ref, atol=1e-2, rtol=25e-1))

def test_scaleABCD_Q(self):
Expand Down

0 comments on commit ca650ea

Please sign in to comment.