Skip to content

Commit

Permalink
add test functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dangilman committed Apr 26, 2024
1 parent ab96833 commit b64895e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/test_halos/test_concentrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ def test_concentration_diemer_joyce(self):
c = concentration_model.nfw_concentration(m, z)
npt.assert_equal(c != c_true, True)

c = concentration_model.nfw_concentration(np.array([10**8]*10), [z]*10)
c = concentration_model.nfw_concentration(np.array([10**8]*10), z)
npt.assert_equal(10, len(c))

def test_concentration_ludlow(self):

m = 10 ** 8
z = 0.5
c_true = 14.246936385951503
c_true = 13.602537830392322
scatter = False
scatter_amplitude_dex = 0.2
concentration_model = ConcentrationLudlow(self.astropy, scatter)
Expand All @@ -50,7 +50,7 @@ def test_concentration_ludlow(self):
c = concentration_model.nfw_concentration(m, z)
npt.assert_equal(c != c_true, True)

c = concentration_model.nfw_concentration(np.array([10 ** 8] * 10), [z] * 10)
c = concentration_model.nfw_concentration(np.array([10 ** 8] * 10), z)
npt.assert_equal(10, len(c))


Expand Down
2 changes: 1 addition & 1 deletion tests/test_preset_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_CDM_correlated_structure_only(self):

cdm = CDMCorrelatedStructure(0.5, 1.5)
_ = cdm.lensing_quantities()

def test_WDM(self):

wdm = WDM(0.5, 1.5, 8.0)
Expand Down

0 comments on commit b64895e

Please sign in to comment.