Skip to content

Commit 2ed952c

Browse files
Fixed ccl spline_params error with new version; now clean, part of cosmo object
1 parent b83428c commit 2ed952c

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

cs_util/cosmo.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@
1717
import pyccl as ccl
1818

1919

20-
# Set ell_max to large value, for spline interpolation (in integral over
21-
# C_ell to get real-space correlation functions). Avoid aliasing
22-
# (oscillations)
23-
ccl.spline_params.ELL_MAX_CORR = 10_000_000
24-
25-
ccl.spline_params.N_ELL_CORR = 5_000
26-
27-
2820
def get_cosmo_default():
2921
"""Get Cosmo Default.
3022
@@ -44,6 +36,12 @@ def get_cosmo_default():
4436
n_s=0.96,
4537
)
4638

39+
# Set ell_max to large value, for spline interpolation (in integral over
40+
# C _ell to get real-space correlation functions). Avoid aliasing
41+
# ( oscillations)
42+
cos.cosmo.spline_params.ELL_MAX_CORR = 10_000_000
43+
cos.cosmo.spline_params.N_ELL_CORR = 5_000
44+
4745
return cos
4846

4947

0 commit comments

Comments
 (0)