Skip to content

Commit

Permalink
modifications to tests for estimateDeltaStaeckel and removed import s…
Browse files Browse the repository at this point in the history
…tatement from dierickx_eccentricities
  • Loading branch information
jmackereth committed Jan 5, 2018
1 parent d8c6669 commit 9b541b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion doc/source/examples/dierickx_eccentricities.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os, os.path
import pexpect
import subprocess
from astropy.io import fits, ascii
from astropy import units
Expand Down
2 changes: 1 addition & 1 deletion tests/test_actionAngle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ def test_estimateDeltaStaeckel_no_median():
#and the individual ones
indiv = numpy.array([estimateDeltaStaeckel(MWPotential2014, o.R(ts[i]), o.z(ts[i])) for i in range(10)])
#check that values agree
assert (numpy.fabs(nomed-indiv) < 1e10).all(), 'no_median option returns different values to individual Delta estimation'
assert (numpy.fabs(nomed-indiv) < 1e-10).all(), 'no_median option returns different values to individual Delta estimation'
return None

def test_actionAngleStaeckel_indivdelta_actions_c():
Expand Down

0 comments on commit 9b541b9

Please sign in to comment.