Skip to content

Commit

Permalink
rebalance halo sampler test buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
daviesje committed Nov 13, 2024
1 parent 4e01ba6 commit 76d594b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/py21cmfast/wrapper/cfuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ def halo_sample_test(
if from_cat:
z_prev = (1 + redshift) / global_params.ZPRIME_STEP_FACTOR - 1

buffer_size = int(2e7)
buffer_size = int(3e7) # about 500MB total 2e7 * 4 (float) * 4 (mass + 3crd)
nhalo_out = np.zeros(1).astype("i4")
N_out = np.zeros(n_cond).astype("i4")
M_out = np.zeros(n_cond).astype("f8")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_halo_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_sampler(name, cond, from_cat, plt):

from_cat = "cat" in from_cat

n_cond = 25000
n_cond = 15000
if from_cat:
mass = 10 ** options_log10mass[cond]
cond = mass
Expand Down

0 comments on commit 76d594b

Please sign in to comment.