Skip to content

Commit

Permalink
Change function name in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shbhuk committed Mar 2, 2021
1 parent 60c2715 commit e7899a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion barycorrpy/sample_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def run_sample():
a.append('result6')
b+=1

result7 = utc_tdb.JDUTC_to_SolarEmissionTDB(JDUTC=2458000, obsname='KPNO')
result7 = utc_tdb.JDUTC_to_HJDTDB(JDUTC=2458000, obsname='KPNO')

if np.isclose(a=result7[0], b=2457999.99497543, atol=1e-7, rtol=0):
a.append('result7')
Expand Down
4 changes: 2 additions & 2 deletions barycorrpy/tests/test_barycorrpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ def test_SolarBC(self):
result6 = get_BC_vel(JDUTC=2458000, lat=-30.169138888, longi=-70.805888, alt=2379.5, zmeas=0.0, SolSystemTarget='Sun')
self.assertTrue(np.isclose(a = result6[0], b = 819.4474, atol = 1e-2, rtol = 0))

def test_SolarEmissionTDB(self):
def test_HJDTDB(self):

result7 = utc_tdb.JDUTC_to_SolarEmissionTDB(JDUTC=2458000, obsname='KPNO')
result7 = utc_tdb.JDUTC_to_HJDTDB(JDUTC=2458000, obsname='KPNO')
self.assertTrue(np.isclose(a=result7[0], b=2457999.99497543, atol=1e-7, rtol=0))


Expand Down

0 comments on commit e7899a0

Please sign in to comment.