Documentation implies that the following section of code will generate nbins=20. That is NOT true -- the following lines of code only generates nbins = 19. To truly generate nbins, nbins+1 has to be passed into np.(log/lin)space.
H/T to @aphearin for catching this. Fix needs to be in documentation and some change in the interface (say, embedding nrpbins and npibins into the numpy array, and/or requiring both npibins and pimax in convert_rp_pi_counts_to_wp).
Documentation implies that the following section of code will generate
nbins=20
. That is NOT true -- the following lines of code only generatesnbins = 19
. To truly generatenbins
,nbins+1
has to be passed intonp.(log/lin)space
.Replace the last two lines with :
H/T to @aphearin for catching this. Fix needs to be in documentation and some change in the interface (say, embedding
nrpbins
andnpibins
into the numpy array, and/or requiring bothnpibins
andpimax
inconvert_rp_pi_counts_to_wp
).