Skip to content

Commit

Permalink
Tweak tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinfan1996 committed Jul 19, 2024
1 parent 783b24c commit c807e67
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/test_theory.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,10 @@ def test_profiles(modeling_data, profile_init):
)
assert_allclose(
mod.eval_surface_density(
cfg["SIGMA_PARAMS"]["r_proj"], cfg["SIGMA_PARAMS"]["z_cl"], r_mis=1.e-15, verbose=True
),
cfg["numcosmo_profiles"]["Sigma"],
1.e-4,
cfg["SIGMA_PARAMS"]["r_proj"], cfg["SIGMA_PARAMS"]["z_cl"], r_mis=0.1, verbose=True
)[-40:],
cfg["numcosmo_profiles"]["Sigma"][-40:],
2.5e-2,
)
assert_allclose(
mod.eval_mean_surface_density(
Expand All @@ -339,10 +339,10 @@ def test_profiles(modeling_data, profile_init):
)
assert_allclose(
mod.eval_mean_surface_density(
cfg["SIGMA_PARAMS"]["r_proj"], cfg["SIGMA_PARAMS"]["z_cl"], r_mis=1.e-15, verbose=True
),
cfg["numcosmo_profiles"]["Sigma"] + cfg["numcosmo_profiles"]["DeltaSigma"],
1.e-4,
cfg["SIGMA_PARAMS"]["r_proj"], cfg["SIGMA_PARAMS"]["z_cl"], r_mis=0.1, verbose=True
)[-40:],
(cfg["numcosmo_profiles"]["Sigma"] + cfg["numcosmo_profiles"]["DeltaSigma"])[-40:],
8.5e-3,
)
assert_allclose(
mod.eval_excess_surface_density(
Expand All @@ -353,10 +353,10 @@ def test_profiles(modeling_data, profile_init):
)
assert_allclose(
mod.eval_excess_surface_density(
cfg["SIGMA_PARAMS"]["r_proj"], cfg["SIGMA_PARAMS"]["z_cl"], r_mis=1.e-15, verbose=True
),
cfg["numcosmo_profiles"]["DeltaSigma"],
1.e-4
cfg["SIGMA_PARAMS"]["r_proj"], cfg["SIGMA_PARAMS"]["z_cl"], r_mis=0.1, verbose=True
)[-40:],
cfg["numcosmo_profiles"]["DeltaSigma"][-40:],
3e-2
)
if mod.backend == "ct":
assert_raises(
Expand Down

0 comments on commit c807e67

Please sign in to comment.