Skip to content

Commit

Permalink
fixed tests in pspecbeam and conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
nkern committed Apr 7, 2018
1 parent 4d31281 commit 7dd8764
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hera_pspec/conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class cgs_units:
"""
fundamental constants in ** CGS ** units
"""
c = 2.99702453e10 # cm s-1
kb = 1.38064e-16 # erg K-1
c = 2.99792458e10 # cm s-1
kb = 1.38064852e-16 # erg K-1


class Cosmo_Conversions(object):
Expand Down
5 changes: 3 additions & 2 deletions hera_pspec/tests/test_pspecbeam.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ def test_UVbeam(self):
# test Jy_to_mK
M = self.bm.Jy_to_mK(np.linspace(100e6, 200e6, 11))
nt.assert_equal(len(M), 11)
nt.assert_almost_equal(M[0], 41.33552971)
M = self.bm.Jy_to_mK(120e6)
nt.assert_almost_equal(M[0], 41.360105524572283)
M = self.bm.Jy_to_mK(99e6)
M = self.bm.Jy_to_mK(201)

def test_Gaussbeam(self):
Om_p = self.gauss.power_beam_int()
Expand Down

0 comments on commit 7dd8764

Please sign in to comment.