Skip to content

Commit

Permalink
collect deps in main file
Browse files Browse the repository at this point in the history
  • Loading branch information
xzackli committed Nov 10, 2023
1 parent 969295a commit d43bdd8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 31 deletions.
6 changes: 5 additions & 1 deletion src/XGPaint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ using JLD2, FileIO
import ThreadsX
import Distributions
import DataInterpolations # used for uneven spaced interpolators

using DelimitedFiles

import PhysicalConstants.CODATA2018 as constants
const M_sun = 1.98847e30u"kg"
const T_cmb = 2.725 * u"K"
const P_e_factor = constants.σ_e / (constants.m_e * constants.c_0^2)

include("./util.jl")
include("./model.jl")
include("./profiles.jl")
Expand Down
9 changes: 0 additions & 9 deletions src/profiles.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@

import PhysicalConstants.CODATA2018 as constants
using Unitful
const M_sun = 1.98847e30u"kg"
const T_cmb = 2.725 * u"K"
const P_e_factor = constants.σ_e / (constants.m_e * constants.c_0^2)
using Cosmology
using QuadGK



# RECTANGULAR WORKSPACES

Expand Down
10 changes: 0 additions & 10 deletions src/profiles_rsz.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@

import PhysicalConstants.CODATA2018 as constants
using Unitful
const M_sun = 1.98847e30u"kg"
const P_e_factor = constants.σ_e / (constants.m_e * constants.c_0^2)
const T_cmb = 2.725 * u"K"
using Cosmology
using QuadGK


struct Battaglia16RelativisticSZProfile{T,C} <: AbstractGNFW{T}
f_b::T # Omega_b / Omega_c = 0.0486 / 0.2589
cosmo::C
Expand Down Expand Up @@ -89,7 +80,6 @@ function rSZ(𝕡, M_200, z, r)
I = (X^3/(ℯ^X-1)) * (2*(2π)^4*(constants.k_B*T_cmb)^3)/((constants.h*constants.c_0)^2) * n
T = I/abs((2 * constants.h^2 * ω^4 *^X)/(constants.k_B * constants.c_0^2 * T_cmb * (ℯ^X - 1)^2))

#return T
return abs(T)
end

Expand Down
11 changes: 0 additions & 11 deletions src/profiles_szp.jl
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@

import PhysicalConstants.CODATA2018 as constants
using Unitful
const M_sun = 1.98847e30u"kg"
const P_e_factor = constants.σ_e / (constants.m_e * constants.c_0^2)
const T_cmb = 2.725 * u"K"
using Cosmology
using QuadGK
using DelimitedFiles
using Interpolations


function read_szpack_table(filename)
table = readdlm(filename)
nu_vector = LinRange(log(35.6888844460172*1e9),log(5353.33266690298*1e9),3000)
Expand Down

0 comments on commit d43bdd8

Please sign in to comment.