Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanfacchinetti committed Feb 15, 2024
1 parent d64f3ea commit 7169879
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 13 deletions.
21 changes: 18 additions & 3 deletions src/Background.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
########################################################
# Subfile of the module Cosmojuly.jl
##################################################################################
# This file is part of CosmoTools.jl
#
# Copyright (c) 2024, Gaétan Facchinetti
#
# CosmoTools.jl is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or any
# later version. CosmoTools.jl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU
# General Public License along with 21cmCAST.
# If not, see <https://www.gnu.org/licenses/>.
##################################################################################
#
# Contains functions related to the transfer functions
#
# author: Gaetan Facchinetti
# email: [email protected]
#
########################################################
##################################################################################


# First define some basic constants (the only one we will need)
Expand Down
18 changes: 18 additions & 0 deletions src/CosmoTools.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
##################################################################################
# This file is part of CosmoTools.jl
#
# Copyright (c) 2024, Gaétan Facchinetti
#
# CosmoTools.jl is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or any
# later version. CosmoTools.jl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU
# General Public License along with 21cmCAST.
# If not, see <https://www.gnu.org/licenses/>.
##################################################################################

module CosmoTools

import QuadGK, Roots
Expand Down
9 changes: 4 additions & 5 deletions src/Halos.jl
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
##################################################################################
# This file is part of CosmoTools.
# This file is part of CosmoTools.jl
#
# Copyright (c) 2023, Gaétan Facchinetti
# Copyright (c) 2024, Gaétan Facchinetti
#
# Cosmojuly is free software: you can redistribute it and/or modify it
# CosmoTools.jl is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or any
# later version. 21cmCAST is distributed in the hope that it will be useful,
# later version. CosmoTools.jl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU
# General Public License along with 21cmCAST.
# If not, see <https://www.gnu.org/licenses/>.
#
##################################################################################


Expand Down
18 changes: 18 additions & 0 deletions src/MassFunction.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
##################################################################################
# This file is part of CosmoTools.jl
#
# Copyright (c) 2024, Gaétan Facchinetti
#
# CosmoTools.jl is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or any
# later version. CosmoTools.jl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU
# General Public License along with 21cmCAST.
# If not, see <https://www.gnu.org/licenses/>.
##################################################################################


export dn_dM, MassFunctionType, PressSchechter, SethTormen

Expand Down
19 changes: 19 additions & 0 deletions src/PowerSpectrum.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
##################################################################################
# This file is part of CosmoTools.jl
#
# Copyright (c) 2024, Gaétan Facchinetti
#
# CosmoTools.jl is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or any
# later version. CosmoTools.jl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU
# General Public License along with 21cmCAST.
# If not, see <https://www.gnu.org/licenses/>.
##################################################################################


export Cosmology, planck18, curvature_power_spectrum, matter_power_spectrum, power_spectrum_ΛCDM
export window_function, Window, TopHatWindow, SharpKWindow, GaussianWindow, radius_from_mass, mass_from_radius, dradius_dmass
export σ2_mps, dσ2_mps_dR, σ_mps, dσ_mps_dR, σ2_mps_M, dσ2_mps_dM, σ_mps_M, dσ_mps_dM
Expand Down
23 changes: 18 additions & 5 deletions src/TransferFunction.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
########################################################
# Subfile of the module Cosmojuly.jl
##################################################################################
# This file is part of CosmoTools.jl
#
# Copyright (c) 2024, Gaétan Facchinetti
#
# CosmoTools.jl is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or any
# later version. CosmoTools.jl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU
# General Public License along with 21cmCAST.
# If not, see <https://www.gnu.org/licenses/>.
##################################################################################
#
# Contains functions related to the transfer functions
#
# author: Gaetan Facchinetti
# email: [email protected]
#
########################################################


##################################################################################

export transfer_function, TrivialTF, EH98, TransferFunctionModel, EH98_planck18

Expand Down

0 comments on commit 7169879

Please sign in to comment.