modelarrayio.storage.tiledb_storage.write_rows_in_column_stripes

modelarrayio.storage.tiledb_storage.write_rows_in_column_stripes(uri: str, rows: Sequence[ndarray])[source]

Fill a 2D TileDB dense array by buffering column-aligned stripes to minimize tile writes, using about one tile’s worth of memory.

Parameters:
  • uri (str) – Target array URI with shape (n_files, n_elements).

  • rows (Sequence[np.ndarray]) – List/sequence of 1D arrays, one per subject, length == n_elements. Each will be cast on write to array attr dtype if needed.