Skip to content

Commit

Permalink
reduce floating point reproducibility expectation - fails on M1
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonBurns committed Jul 1, 2024
1 parent 5d98060 commit ea7ee33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/daspkTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ def testSensitivity(self):

Ctrue = 1.0 - Atrue - Btrue
if Atrue > 1e-8:
self.assertAlmostEqual(A / Atrue, 1.0, 6)
self.assertAlmostEqual(A / Atrue, 1.0, 5)
if Btrue > 1e-8:
self.assertAlmostEqual(B / Btrue, 1.0, 6, 'At t = %g: B = %g, but Btrue = %g' % (t, B, Btrue))
self.assertAlmostEqual(B / Btrue, 1.0, 5, 'At t = %g: B = %g, but Btrue = %g' % (t, B, Btrue))
if Ctrue > 1e-8:
self.assertAlmostEqual(C / Ctrue, 1.0, 6, 'At t = %g: C = %g, but Ctrue = %g' % (t, C, Ctrue))
self.assertAlmostEqual(C / Ctrue, 1.0, 5, 'At t = %g: C = %g, but Ctrue = %g' % (t, C, Ctrue))

print("At 16 seconds after simulation...")
print("dA/dk1 = %f" % dAdk1vec[-1])
Expand Down

0 comments on commit ea7ee33

Please sign in to comment.