Skip to content

Commit 0518c14

Browse files
authored
Merge pull request #50 from apache/numpy2_compat
Fix test to remove deprecated call, allow use of numpy 1.x or 2.x
2 parents f812afa + 7daf3ce commit 0518c14

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
requires = ["wheel",
2020
"setuptools >= 30.3.0",
2121
"cmake >= 3.16",
22-
"numpy < 2.0",
22+
"numpy",
2323
"nanobind >= 1.6"]
2424
build-backend = "setuptools.build_meta"
2525

tests/vector_of_kll_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ def test_kll_2Dupdates(self):
114114

115115
for i in range(0, n):
116116
dat = np.random.randn(nbatch, d)
117-
smin = np.amin(np.row_stack((smin, dat)), axis=0)
118-
smax = np.amax(np.row_stack((smax, dat)), axis=0)
117+
smin = np.amin(np.vstack((smin, dat)), axis=0)
118+
smax = np.amax(np.vstack((smax, dat)), axis=0)
119119
kll.update(dat)
120120

121121
# 0 should be near the median

0 commit comments

Comments
 (0)