Skip to content

Commit

Permalink
apply in _ingest_uns_ndarray
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Apr 11, 2024
1 parent 70e2dd9 commit add8422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis/python/src/tiledbsoma/io/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2750,15 +2750,15 @@ def _ingest_uns_ndarray(
logging.log_io(msg, msg)
return
try:
soma_arr = _factory.open(arr_uri, "w", soma_type=DenseNDArray, context=context)
except DoesNotExistError:
soma_arr = DenseNDArray.create(
arr_uri,
type=pa_dtype,
shape=value.shape,
platform_config=platform_config,
context=context,
)
except AlreadyExistsError:
soma_arr = _factory.open(arr_uri, "w", soma_type=DenseNDArray, context=context)

Check warning on line 2761 in apis/python/src/tiledbsoma/io/ingest.py

View check run for this annotation

Codecov / codecov/patch

apis/python/src/tiledbsoma/io/ingest.py#L2760-L2761

Added lines #L2760 - L2761 were not covered by tests

# If resume mode: don't re-write existing data. This is the user's explicit request
# that we not re-write things that have already been written.
Expand Down

0 comments on commit add8422

Please sign in to comment.