Skip to content

Commit

Permalink
Remove NumericalPotentialDerivativesMixin from tests that run on all …
Browse files Browse the repository at this point in the history
…potentials
  • Loading branch information
jobovy committed Aug 6, 2019
1 parent ab245f1 commit 3033640
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions tests/test_orbit.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def test_energy_jacobi_conservation():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
rmpots.append('SphericalShellPotential')
rmpots.append('RingPotential')
if False: #_TRAVIS: #travis CI
Expand Down Expand Up @@ -505,7 +505,7 @@ def test_energy_conservation_linear():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
rmpots.append('SphericalShellPotential')
rmpots.append('RingPotential')
rmpots.append('SoftenedNeedleBarPotential')
Expand Down Expand Up @@ -669,7 +669,7 @@ def test_liouville_planar():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
#rmpots.append('BurkertPotential')
#Don't have C implementations of the relevant 2nd derivatives
rmpots.append('DoubleExponentialDiskPotential')
Expand Down Expand Up @@ -798,7 +798,7 @@ def test_eccentricity():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
rmpots.append('SphericalShellPotential')
rmpots.append('RingPotential')
if False: #_TRAVIS: #travis CI
Expand Down Expand Up @@ -923,7 +923,7 @@ def test_pericenter():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
rmpots.append('SphericalShellPotential')
rmpots.append('RingPotential')
if False: #_TRAVIS: #travis CI
Expand Down Expand Up @@ -1047,7 +1047,7 @@ def test_apocenter():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
rmpots.append('SphericalShellPotential')
rmpots.append('RingPotential')
if False: #_TRAVIS: #travis CI
Expand Down Expand Up @@ -1171,7 +1171,7 @@ def test_zmax():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
rmpots.append('SphericalShellPotential')
rmpots.append('RingPotential')
if False: #_TRAVIS: #travis CI
Expand Down Expand Up @@ -1282,7 +1282,7 @@ def test_analytic_ecc_rperi_rap():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
rmpots.append('SphericalShellPotential')
rmpots.append('RingPotential')
if False: #_TRAVIS: #travis CI
Expand Down Expand Up @@ -1602,7 +1602,7 @@ def test_analytic_zmax():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
rmpots.append('SphericalShellPotential')
rmpots.append('RingPotential')
if False: #_TRAVIS: #travis CI
Expand Down
18 changes: 9 additions & 9 deletions tests/test_potential.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_normalize_potential():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
if False: #_TRAVIS: #travis CI
rmpots.append('DoubleExponentialDiskPotential')
rmpots.append('RazorThinExponentialDiskPotential')
Expand Down Expand Up @@ -166,7 +166,7 @@ def test_forceAsDeriv_potential():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
if False: #_TRAVIS: #travis CI
rmpots.append('DoubleExponentialDiskPotential')
rmpots.append('RazorThinExponentialDiskPotential')
Expand Down Expand Up @@ -332,7 +332,7 @@ def test_2ndDeriv_potential():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
if False: #_TRAVIS: #travis CI
rmpots.append('DoubleExponentialDiskPotential')
rmpots.append('RazorThinExponentialDiskPotential')
Expand Down Expand Up @@ -553,7 +553,7 @@ def test_poisson_potential():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
if False: #_TRAVIS: #travis CI
rmpots.append('DoubleExponentialDiskPotential')
rmpots.append('RazorThinExponentialDiskPotential')
Expand Down Expand Up @@ -657,7 +657,7 @@ def test_poisson_surfdens_potential():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
if False: #_TRAVIS: #travis CI
rmpots.append('DoubleExponentialDiskPotential')
rmpots.append('RazorThinExponentialDiskPotential')
Expand Down Expand Up @@ -781,7 +781,7 @@ def test_evaluateAndDerivs_potential():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
if False: #_TRAVIS: #travis CI
rmpots.append('DoubleExponentialDiskPotential')
rmpots.append('RazorThinExponentialDiskPotential')
Expand Down Expand Up @@ -987,7 +987,7 @@ def test_amp_mult_divide():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
if False: #_TRAVIS: #travis CI
rmpots.append('DoubleExponentialDiskPotential')
rmpots.append('RazorThinExponentialDiskPotential')
Expand Down Expand Up @@ -1031,7 +1031,7 @@ def test_potential_array_input():
rmpots= ['Potential','MWPotential','MWPotential2014',
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
rmpots.append('FerrersPotential')
rmpots.append('PerfectEllipsoidPotential')
rmpots.append('TriaxialHernquistPotential')
Expand Down Expand Up @@ -1309,7 +1309,7 @@ def test_toVertical_toPlanar():
'interpRZPotential', 'linearPotential', 'planarAxiPotential',
'planarPotential', 'verticalPotential','PotentialError',
'SnapshotRZPotential','InterpSnapshotRZPotential',
'EllipsoidalPotential']
'EllipsoidalPotential','NumericalPotentialDerivativesMixin']
if False: #_TRAVIS: #travis CI
rmpots.append('DoubleExponentialDiskPotential')
rmpots.append('RazorThinExponentialDiskPotential')
Expand Down

0 comments on commit 3033640

Please sign in to comment.