tiledbsoma.DenseNDArray.write

DenseNDArray.write(coords: Sequence[None | int | Slice[int]], values: Tensor, *, platform_config: Dict[str, Mapping[str, Any]] | object | None = None) Self

Writes a subarray, defined by coords and values. Will overwrite existing values in the array.

Parameters:
  • coords – A per-dimension tuple of scalars or slices defining the bounds of the subarray to be written.

  • values – The values to be written to the subarray. Must have the same shape as coords, and the type must match the DenseNDArray.

  • platform_config – Optional platform-specific options to use in this write operation (currently unused).

Raises:
  • TypeError – If the values parameter is an unsupported type.

  • SOMAError – If the object is not open for writing.

Lifecycle

Maturing.