Skip to content

Commit

Permalink
fix incompatible numpy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
psmyth94 committed Oct 13, 2024
1 parent 950ec03 commit 2c683b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/biosets/data_handling/arrow/arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

0 comments on commit 2c683b7

Please sign in to comment.