Skip to content

Commit

Permalink
Relaxing comparison, since orvara only guarantees precision to 10^-14…
Browse files Browse the repository at this point in the history
… at high eccentricity
  • Loading branch information
CoreySpohn committed Mar 12, 2024
1 parent 6035dcf commit 0b83453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_keplertools.py
Expand Up @@ -47,7 +47,7 @@ def test_eccanom_vecM_scalare(self):

# Test eccanom_orvara against eccanom
E_orvara, *_ = eccanom_orvara(M, e)
self.assertTrue(np.max(np.abs(E - E_orvara)) < np.finfo(float).eps * 10.0)
self.assertTrue(np.max(np.abs(E - E_orvara)) < np.finfo(float).eps * 100.0)

def test_eccanom_vecM_scalare_noc(self):
"""Test eccentric anomaly calc for a scalar eccentricity value (Python value)
Expand Down Expand Up @@ -111,7 +111,7 @@ def test_eccanom_scalarM_scalare(self):

# Compare orvara and base eccanom versions
E_orvara, *_ = eccanom_orvara(M, e)
self.assertTrue(np.max(np.abs(E - E_orvara)) < np.finfo(float).eps * 10.0)
self.assertTrue(np.max(np.abs(E - E_orvara)) < np.finfo(float).eps * 100.0)

def test_eccanom_scalarM_scalare_noc(self):
"""Test eccentric anomaly calculation for scalar M, e (python ver)"""
Expand Down

0 comments on commit 0b83453

Please sign in to comment.