Skip to content

Commit

Permalink
Fix indexing error in harmonic test
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Apr 11, 2018
1 parent bd8fa35 commit f17d4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_actionAngle.py
Expand Up @@ -77,7 +77,7 @@ def test_physical_harmonic():
# actionsFreqsAngles
assert numpy.fabs(aAH.actionsFreqsAngles(0.2,0.1)[0]-aAHnu.actionsFreqsAngles(0.2,0.1)[0]*ro*vo) < 10.**-8., 'actionAngle function actionsFreqsAngles does not return Quantity with the right value for actionAngleHarmonic'
assert numpy.fabs(aAH.actionsFreqsAngles(0.2,0.1)[1]-aAHnu.actionsFreqsAngles(0.2,0.1)[1]*bovy_conversion.freq_in_Gyr(vo,ro)) < 10.**-8., 'actionAngle function actionsFreqsAngles does not return Quantity with the right value for actionAngleHarmonic'
assert numpy.fabs(aAH.actionsFreqsAngles(0.2,0.1)[21]-aAHnu.actionsFreqsAngles(0.2,0.1)[2]) < 10.**-8., 'actionAngle function actionsFreqsAngles does not return Quantity with the right value for actionAngleHarmonic'
assert numpy.fabs(aAH.actionsFreqsAngles(0.2,0.1)[2]-aAHnu.actionsFreqsAngles(0.2,0.1)[2]) < 10.**-8., 'actionAngle function actionsFreqsAngles does not return Quantity with the right value for actionAngleHarmonic'
return None

#Basic sanity checking of the actionAngleIsochrone actions
Expand Down

0 comments on commit f17d4bc

Please sign in to comment.