Skip to content

Commit 070d0b4

Browse files
authored
Merge pull request SeequentEvo#117 from wordsworthc/fix/parquet-loader-load-array
Fix/parquet loader load array
2 parents f8d5dea + 8c39487 commit 070d0b4

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

packages/evo-objects/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "evo-objects"
33
description = "Python SDK for using the Seequent Evo Geoscience Object API"
4-
version = "0.3.0"
4+
version = "0.3.1"
55
requires-python = ">=3.10"
66
license-files = ["LICENSE.md"]
77
dynamic = ["readme"]

packages/evo-objects/src/evo/objects/parquet/loader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ def load_as_array(self) -> np.ndarray:
157157
:return: A NumPy array containing the data.
158158
"""
159159
table = self.load_as_table()
160-
columns = cast(list[np.ndarray], [col.combine_chunks().to_numpy() for col in table.itercolumns()])
160+
columns = cast(
161+
list[np.ndarray], [col.combine_chunks().to_numpy(zero_copy_only=False) for col in table.itercolumns()]
162+
)
161163
if len(columns) == 1:
162164
return columns[0]
163165
else:

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)