HERA-Team / hera_pspec

HERA power spectrum estimation code and data formats
http://hera-pspec.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Issue in little_h homogeneity when using grouping.spherical_average #361

Open adeliegorce opened 2 years ago

adeliegorce commented 2 years ago

There was an issue in grouping.spherical_average: if keyword little_h is False in function, then the input k-bins are automatically adjusted to be in h Mpc-1 units:

# transform kgrid to little_h units
 if not little_h:
      kbins = kbins / uvp.cosmo.h
      bin_widths = bin_widths / uvp.cosmo.h

However this change occurred after defining kbin_left and kbin_right that are later used to bin. I changed this and moved the above code block up.