Skip to content

Commit 744267e

Browse files
committed
Fixed the number of divisions along axes
1 parent 565601c commit 744267e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycorr/twopoint_jackknife.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def __init__(self, positions=None, boxsize=None, boxcenter=None, nsamples=8, pos
181181
def run(self):
182182
"""Set edges for binning along each axis."""
183183
offset = self.boxcenter - self.boxsize / 2.
184-
self.edges = [o + np.linspace(0, b, n) for o, b, n in zip(offset, self.boxsize, self.nsamples)]
184+
self.edges = [o + np.linspace(0, b, n + 1) for o, b, n in zip(offset, self.boxsize, self.nsamples)]
185185

186186
def label(self, positions, position_type=None):
187187
"""

0 commit comments

Comments
 (0)