Skip to content

Commit

Permalink
Update profiles_szp.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-Kuhn authored and xzackli committed Mar 6, 2024
1 parent 460804b commit 293bd3e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/profiles_szp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function Battaglia16SZPackProfile(𝕡_tsz, tsz_interp, filename::String, x::T,
return Battaglia16SZPackProfile(f_b, cosmo, X, 𝕡_tsz, tsz_interp, szpack_interp, τ)
end

function SZpack(𝕡, M_200, z, r, τ=0.01)
function SZpack(𝕡, M_200, z, r, τ=0.01, showT=true)
"""
Outputs the integrated compton-y signal calculated using SZpack along the line of sight.
"""
Expand All @@ -45,7 +45,11 @@ function SZpack(𝕡, M_200, z, r, τ=0.01)
I = y * (dI/* θ_e)) * (2π)^4
T = I/abs((2 * constants.h^2 * ω^4 *^X)/(constants.k_B * constants.c_0^2 * T_cmb * (ℯ^X - 1)^2))

return abs(T)
if showT==true
return abs(T)
else
return I
end
end


Expand Down

0 comments on commit 293bd3e

Please sign in to comment.