From e75815ff970a84f21e78adbc9f217f83fef83808 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk <21087696+oleksandr-pavlyk@users.noreply.github.com> Date: Thu, 25 Jun 2026 11:41:40 -0500 Subject: [PATCH] Use legacy np.unique(..., return_counts=True) This is to support older versions of NumPy --- python/scripts/nvbench_compare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/scripts/nvbench_compare.py b/python/scripts/nvbench_compare.py index a505fec..8fca47c 100644 --- a/python/scripts/nvbench_compare.py +++ b/python/scripts/nvbench_compare.py @@ -1331,7 +1331,7 @@ def format_support_filter_info(filter_info): def sorted_unique_counts(values: np.ndarray) -> tuple[np.ndarray, np.ndarray]: - unique_values, unique_counts = np.unique_counts(values) + unique_values, unique_counts = np.unique(values, return_counts=True) # unique is not guaranteed to return sorted values # make sure to order them sorting_indices = np.argsort(unique_values)