Skip to content

Commit

Permalink
Added test for get_baryv()
Browse files Browse the repository at this point in the history
  • Loading branch information
scottransom committed Nov 15, 2017
1 parent 14d4b05 commit 0fc3252
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_presto_python.py
Expand Up @@ -158,3 +158,10 @@
50.0*presto.DEGTORAD, -10.0*presto.DEGTORAD)
assert(round(160334.960*presto.ARCSEC2RAD-ang, 7)==0)
print "success"

print "Testing get_baryv (barycenter)...",
vavg1 = presto.get_baryv("18:24:32.9520", "-24:52:12.0000",
56421.44222222222222, 214.5386496, obs="GB")
vavg2 = -7.2069293455783169e-05
assert(round(vavg1-vavg2, 10)==0)
print "success"

0 comments on commit 0fc3252

Please sign in to comment.