Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pressure profiles #17

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
aa79709
Preliminary Battaglia pressure profile code, in python.
jhod0 Jun 28, 2019
7376268
Started pressure profile test
jhod0 Jun 28, 2019
1d53563
inline constant, much faster
jhod0 Jun 28, 2019
0e7edf1
consistent epsrel, but lower precision
jhod0 Jul 1, 2019
842c2d5
Added `y` computation, much improved function docs
jhod0 Jul 1, 2019
ef380ca
added naive convolution, and simplified interface slightly
jhod0 Jul 3, 2019
7f8669c
minor refactoring, 3d pressure profile test
jhod0 Jul 9, 2019
3cc6648
test all simulated profiles, does not take long
jhod0 Jul 9, 2019
bcc8ef0
port to C, operate on arrays of r
jhod0 Jul 9, 2019
a75df39
remove magic numbers, rename to `pressure` for consistency with
jhod0 Jul 10, 2019
cf3b6cb
remove unused functions
jhod0 Jul 10, 2019
826432a
migrate to class-based interface
jhod0 Jul 11, 2019
2d3d191
added convolution
jhod0 Jul 11, 2019
b084bcb
Merge branch 'pressure-profiles' into class-based
jhod0 Jul 12, 2019
916bd3c
Merge branch 'master' into pressure-profiles
jhod0 Jul 12, 2019
f58e8fb
added FFT of BBPS profile
jhod0 Jul 15, 2019
a2c4ddc
Merge branch 'pressure-profiles' into class-based
jhod0 Jul 15, 2019
2c4aaf0
added mass function and bias to cosmology data
jhod0 Jul 15, 2019
fed278d
Merge branch 'pressure-profiles' into class-based
jhod0 Jul 15, 2019
b1c419f
abstracted C fourier transform, working spherical inverse Fourier tra…
jhod0 Jul 18, 2019
77630f9
added spline integrator
jhod0 Jul 19, 2019
6f7715d
first-pass two halo term
jhod0 Jul 19, 2019
cd8508a
fix contiguity-related bug
jhod0 Jul 19, 2019
c1d2258
add partial 2-halo fun
jhod0 Jul 29, 2019
f6e1697
Merge branch 'master' into pressure-profiles
jhod0 Aug 1, 2019
a9f8bcf
refactor test loading
jhod0 Aug 5, 2019
2cfd430
disable GSL error handler so we can handle ourselves
jhod0 Aug 6, 2019
27c2d0b
exp(linspace(log(), log())) -> geomspace
jhod0 Aug 6, 2019
de91af7
Merge branch 'class-based' into commute-mass-ft
jhod0 Aug 6, 2019
f736fb1
added forward spherical ft, do mass weighting in real space
jhod0 Aug 7, 2019
51d35bc
acceptable 2halo 3d profile - seems plausible, ~1s
jhod0 Aug 7, 2019
177c397
all the right `h`s in data
jhod0 Aug 13, 2019
1cad91f
added Abel transform interface, projected 2halo
jhod0 Aug 19, 2019
c8cdb80
add Abel transform test
jhod0 Aug 19, 2019
11c25b1
Merge branch 'class-based' into pressure-profiles
jhod0 Aug 19, 2019
a052652
converted `h0` to a parameter - all tests pass
jhod0 Aug 19, 2019
ace4c97
correct pressure projection
jhod0 Aug 20, 2019
442e20f
Merge branch 'pressure-profiles' into pressure-without-hs
jhod0 Aug 20, 2019
baca60b
update hs in docs
jhod0 Aug 20, 2019
cd46998
add mass def conversion, and correct bias data
jhod0 Aug 21, 2019
e71a228
add mass def conversion, and correct bias data
jhod0 Aug 21, 2019
9cdf875
fix mass definition changer
jhod0 Aug 21, 2019
13d4a66
fix mass definition changer
jhod0 Aug 21, 2019
21f3a4d
Merge branch 'pressure-without-hs' into pressure-profiles
jhod0 Sep 3, 2019
bc376cc
refactored 2halo to separate class + improve docs + 2halo mass def
jhod0 Sep 3, 2019
0e07bdf
Document mass def assumptions in BBPSProfile and TwoHaloProfile
jhod0 Sep 3, 2019
b88573c
add projection-convolution member function to TwoHaloProfile
jhod0 Sep 3, 2019
80d4781
Merge pull request #5 from jhod0/refactor-two-halo
jhod0 Sep 3, 2019
35aafa6
refactored and renamed a bit
jhod0 Sep 10, 2019
9bb03be
add 2d symmetric FT
jhod0 Sep 10, 2019
fc90b38
add proj.-sl. thm. test, correct length error
jhod0 Sep 10, 2019
f60cb38
fixed typo in docs, add function for analytic 2halo beam convolution
jhod0 Sep 11, 2019
694b2ab
add epsrel's to spherical FT, adjust eps's
jhod0 Sep 12, 2019
9e15385
corrected some typos & simplified cosmology params
jhod0 Sep 16, 2019
0f1d386
installation fixes from des machines
jhod0 Sep 17, 2019
8ab4886
corrected some comoving/physical distance stuff wrt P_lin
jhod0 Sep 18, 2019
156cf54
correct to allow M_PI
jhod0 Sep 18, 2019
519c8cb
first-pass abstracted 1halo, py2 compatibility
jhod0 Sep 19, 2019
ffec69b
refactoring WIP
jhod0 Sep 19, 2019
f307feb
missed a comoving/physical correction - corrected
jhod0 Sep 19, 2019
b0c4d7c
tweak some error bounds, correct typo
jhod0 Sep 19, 2019
9b75e8a
changed how the "fake image" convolution method works
jhod0 Sep 26, 2019
e256809
new fourier-space <-> grid convolution method equivalence test
jhod0 Sep 27, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion cluster_toolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@
for file_name in glob.glob(os.path.join(include_dir,'*.h')):
_ffi.cdef(open(file_name).read())
_lib = _ffi.dlopen(lib_file)
_lib.gsl_set_error_handler_off()

def _dcast(x):
if isinstance(x, list): x = np.asarray(x, dtype=np.float64, order='C')
return _ffi.cast('double*', x.ctypes.data)

from . import averaging, bias, boostfactors, concentration, deltasigma, density, exclusion, massfunction, miscentering, peak_height, profile_derivatives, sigma_reconstruction, xi
from . import (averaging, bias, boostfactors, concentration, deltasigma,
density, exclusion, massfunction, miscentering, peak_height,
pressure, profile_derivatives, sigma_reconstruction, xi)
Loading