From 2c683b7cd0768c4587bbfced37e9244c25f8590b Mon Sep 17 00:00:00 2001 From: Patrick Smyth Date: Sun, 13 Oct 2024 07:56:50 -0500 Subject: [PATCH] fix incompatible numpy changes --- src/biosets/data_handling/arrow/arrow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/biosets/data_handling/arrow/arrow.py b/src/biosets/data_handling/arrow/arrow.py index 10e90f1..768dfa2 100644 --- a/src/biosets/data_handling/arrow/arrow.py +++ b/src/biosets/data_handling/arrow/arrow.py @@ -88,8 +88,8 @@ def _arrow_array_to_numpy(self, pa_array: pa.Array) -> np.ndarray: or (isinstance(x, float) and np.isnan(x)) for x in array ): - return np.array(array, copy=False, dtype=object) - return np.array(array, copy=False) + return np.asarray(array, dtype=object) + return np.asarray(array) def to_pandas(self, X: Union[pa.Array, pa.ChunkedArray, pa.Table], **kwargs): if isinstance(X, (pa.ChunkedArray, pa.Array)):