Fix some stylistic issues.
@@ -6,7 +6,7 @@ import pyccl as ccl
# Set tolerances
TOLERANCE = 1e-4
-def check_redshift_analytic():
+def test_redshift_analytic():
"""
Compare the redshift functions to an analytic toy case.
"""
@@ -62,7 +62,7 @@ def check_redshift_analytic():
dNdZ_ana), dNdz_tomog_analytic(z, 0.1, zmin,
zmax), rtol=TOLERANCE)
-def check_redshift_numerical():
+def test_redshift_numerical():
"""
Compare the redshift functions to a high precision integral.
"""
@@ -130,20 +130,5 @@ def check_redshift_numerical():
assert_allclose(ccl.dNdz_tomog(z_lst[i], zmin, zmax, PZ3,
dNdZ2), np_dndz_3[i], rtol=TOLERANCE)
-def test_redshift_analytic():
- """
- Test dNdz_tomog values against analytic toy example.
- """
-
- check_redshift_analytic()
-
-def test_redshift_numerical():
- """
- Test dNdz_tomog values against high prec integral in numpy.
- """
-
- check_redshift_numerical()
-
-
if __name__ == "__main__":
run_module_suite()
