From bf5fbac0537a62e93f5691af7458962c568dd73b Mon Sep 17 00:00:00 2001 From: johannesulf Date: Thu, 30 Aug 2018 15:57:07 -0400 Subject: [PATCH] bugfix for miscounting of halo number densities --- tabcorr/tabcorr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabcorr/tabcorr.py b/tabcorr/tabcorr.py index dceb5ac..418967d 100644 --- a/tabcorr/tabcorr.py +++ b/tabcorr/tabcorr.py @@ -142,7 +142,7 @@ def tabulate(cls, halocat, tpcf, *tpcf_args, np.log10(halos[prim_haloprop_key]), halos[sec_haloprop_key + '_percentile'], bins=[prim_haloprop_bins, sec_haloprop_percentile_bins])) - halotab.gal_type['n_h'] = n_h.ravel() / np.prod(halocat.Lbox) + halotab.gal_type['n_h'] = n_h.ravel(order='F') / np.prod(halocat.Lbox) grid = np.meshgrid(log_prim_haloprop_bins, sec_haloprop_percentile_bins)