Skip to content

Commit 87de6e4

Browse files
updated pyhalomodel to 0.1.7; simple_twohalo=True; not much speed up
1 parent fddb237 commit 87de6e4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

poetry.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyhmcode/pyhmcode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def hmcode(k:np.array, zs:np.array, CAMB_results:camb.CAMBdata,
151151

152152
# Vanilla power spectrum calculation
153153
# TODO: Wasteful as this calculate the standard two-halo term unnecessarily
154-
_, Pk_1h, _ = hmod.power_spectrum(k, Pk_lin, M, sigmaM, {'m': profile})
154+
_, Pk_1h, _ = hmod.power_spectrum(k, Pk_lin, M, sigmaM, {'m': profile}, simple_twohalo=True)
155155

156156
# HMcode tweaks
157157
P_wig = _get_Pk_wiggle(k, Pk_lin, CAMB_results) # Isolate spectral wiggle; footnote 7

0 commit comments

Comments
 (0)