Skip to content

Commit

Permalink
[python] New-shape testing for tiledbsoma.io [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Sep 7, 2024
1 parent 6e792f9 commit d9c2517
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apis/python/src/tiledbsoma/io/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,7 @@ def _write_dataframe_impl(
soma_df = DataFrame.create(
df_uri,
schema=arrow_table.schema,
domain=((0, int(df.shape[0]) - 1),), # XXX TOUCH
platform_config=platform_config,
context=context,
)
Expand Down Expand Up @@ -1304,7 +1305,9 @@ def _create_from_matrix(

try:
# A SparseNDArray must be appendable in soma.io.
shape = [None for _ in matrix.shape] if cls.is_sparse else matrix.shape
# shape = [None for _ in matrix.shape] if cls.is_sparse else matrix.shape
# shape = matrix.shape # XXX TOUCH
shape = tuple(int(e) for e in matrix.shape) # XXX TOUCH
soma_ndarray = cls.create(
uri,
type=pa.from_numpy_dtype(matrix.dtype),
Expand Down

0 comments on commit d9c2517

Please sign in to comment.