Skip to content

Commit 36084c5

Browse files
bugfix for integer edge coordinates
1 parent bdcc15f commit 36084c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ovrlpy/_ssam2/_utils.py

Lines changed: 1 addition & 1 deletion
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)