From 7b63170d676bb87a9d6f9ae2d246446bfc9f074a Mon Sep 17 00:00:00 2001 From: NamCaoHai Date: Thu, 7 Nov 2024 08:08:56 +0000 Subject: [PATCH] style: apply Black linting rules and auto-fix code style issues Signed-off-by: NamCaoHai --- pymilvus/client/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pymilvus/client/utils.py b/pymilvus/client/utils.py index c09d6b334..aed8ee735 100644 --- a/pymilvus/client/utils.py +++ b/pymilvus/client/utils.py @@ -392,6 +392,4 @@ def convert_to_standard_form(vector_data: Any) -> Any: row_stds = np.std(vector_data, axis=1, keepdims=True) # Standardize each row independently - return np.where( - row_stds != 0, (vector_data - row_means) / row_stds, vector_data - ) + return np.where(row_stds != 0, (vector_data - row_means) / row_stds, vector_data)