Skip to content

Commit e67f30c

Browse files
Merge pull request #47 from HiDiHlabs/dev_nmb
bugfix for integer edge coordinates
2 parents 3310fbe + 36084c5 commit e67f30c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ovrlpy/_ssam2/_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _kde_nd(
4747
dim_bins = list()
4848
for i in range(coordinates.shape[1]):
4949
c_min = int(np.min(coordinates[:, i]))
50-
c_max = int(np.ceil(np.max(coordinates[:, i])))
50+
c_max = int(np.floor(np.max(coordinates[:, i])+1))
5151
dim_bins.append(np.linspace(c_min, c_max, c_max - c_min + 1))
5252

5353
histogram, bins = np.histogramdd(

0 commit comments

Comments
 (0)