Skip to content

Commit cf3b6cb

Browse files
committed
remove unused functions
1 parent a75df39 commit cf3b6cb

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

cluster_toolkit/pressure.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from cluster_toolkit import _dcast, _lib
1818
import numpy as np
1919
from scipy.integrate import quad
20-
import scipy.special as spec
2120

2221

2322
__BBPS_params_P_0 = (18.1, 0.154, -0.758)
@@ -269,42 +268,6 @@ def projected_y_BBPS(r, M, z, omega_b, omega_m,
269268
epsrel=epsrel)
270269

271270

272-
def Cxl(M, z, omega_b, omega_m, da, ell,
273-
epsrel=1e-3):
274-
'''
275-
The Fourier-transform of a cluster's Compton y parameter on the sky. Assumes
276-
the flat-sky approximation.
277-
278-
Args:
279-
M (float): Cluster :math:`M_{\\Delta}`, in Msun.
280-
z (float): Cluster redshift.
281-
omega_b (float): Baryon fraction.
282-
omega_m (float): Matter fraction.
283-
d_a (float): Angular diameter distance at redshift `z`. Should be \
284-
in Mpc.
285-
ell (float): The Fourier-transform wavenumber.
286-
287-
Returns:
288-
float: :math:`C_{x, l}`. Unitless.
289-
'''
290-
return quad(lambda theta: 2 * np.pi * theta * spec.j0(ell * theta)
291-
* projected_y_BBPS(theta * da, M, z, omega_b, omega_m,
292-
epsrel=epsrel),
293-
0, 2 * np.pi,
294-
epsrel=epsrel)[0]
295-
296-
297-
def smoothed_xi(theta, M, z, omega_b, omega_m, da,
298-
epsrel=1e-3, maxl=10000):
299-
# Convert from arcmin to radians
300-
theta = theta * 60 * np.pi / 180
301-
return quad(lambda ell: 1 / (2 * np.pi) * ell * spec.j0(ell * theta)
302-
* Cxl(M, z, omega_b, omega_m, da, ell,
303-
epsrel=epsrel),
304-
0, maxl,
305-
epsrel=epsrel)[0]
306-
307-
308271
##################################################
309272
# The following functions are for testing only!! #
310273
##################################################

0 commit comments

Comments
 (0)