Skip to content

Commit

Permalink
relaxed timing test (mainly for windows), readded simulationarchive test
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed May 7, 2024
1 parent 5b5d4db commit c37b61b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rebound/tests/test_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,8 @@ def test_pericenter(self):
dE_trace = abs((sim.energy() - E0)/E0)

self.assertLess(dE_trace,1e-4) # reasonable precision for trace
self.assertLess(time_trace,time_ias15) # faster than ias15
'''
self.assertLess(time_trace, 2.*time_ias15) # not much slower than ias15

def test_trace_simulationarchive(self):
sim = chaotic_exchange_sim()
sim.integrator = "trace"
Expand All @@ -485,6 +485,6 @@ def test_trace_simulationarchive(self):
x0 = sim.particles[1].x

self.assertEqual(x0,x1)
'''

if __name__ == "__main__":
unittest.main()

0 comments on commit c37b61b

Please sign in to comment.