You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by jm...@apache.org on 2024/07/23 07:30:38 UTC

(datasketches-python) branch numpy2_compat created (now 7daf3ce)

This is an automated email from the ASF dual-hosted git repository.

jmalkin pushed a change to branch numpy2_compat
in repository https://gitbox.apache.org/repos/asf/datasketches-python.git


      at 7daf3ce  Fix test to remove deprecated call, allow use of numpy 1.x or 2.x

This branch includes the following new commits:

     new 7daf3ce  Fix test to remove deprecated call, allow use of numpy 1.x or 2.x

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org


(datasketches-python) 01/01: Fix test to remove deprecated call, allow use of numpy 1.x or 2.x

Posted by jm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jmalkin pushed a commit to branch numpy2_compat
in repository https://gitbox.apache.org/repos/asf/datasketches-python.git

commit 7daf3ce77b8b8cfd8e9101ba9d0aa7e2816e01b5
Author: Jon <jm...@apache.org>
AuthorDate: Tue Jul 23 00:29:56 2024 -0700

    Fix test to remove deprecated call, allow use of numpy 1.x or 2.x
---
 pyproject.toml              | 2 +-
 tests/vector_of_kll_test.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 43a9f05..99c0dcf 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -19,7 +19,7 @@
 requires = ["wheel",
             "setuptools >= 30.3.0",
             "cmake >= 3.16",
-            "numpy < 2.0",
+            "numpy",
             "nanobind >= 1.6"]
 build-backend = "setuptools.build_meta"
 
diff --git a/tests/vector_of_kll_test.py b/tests/vector_of_kll_test.py
index 706f3f9..51b2f0b 100644
--- a/tests/vector_of_kll_test.py
+++ b/tests/vector_of_kll_test.py
@@ -114,8 +114,8 @@ class VectorOfKllSketchesTest(unittest.TestCase):
 
       for i in range(0, n):
         dat  = np.random.randn(nbatch, d)
-        smin = np.amin(np.row_stack((smin, dat)), axis=0)
-        smax = np.amax(np.row_stack((smax, dat)), axis=0)
+        smin = np.amin(np.vstack((smin, dat)), axis=0)
+        smax = np.amax(np.vstack((smax, dat)), axis=0)
         kll.update(dat)
 
       # 0 should be near the median


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org