@@ -53,26 +53,22 @@ def create(
5353
5454 Args:
5555 uri: The URI where the dataframe will be created.
56-
5756 schema: Arrow schema defining the per-column schema. This schema
5857 must define all columns, including columns to be named as index
5958 columns. If the schema includes types unsupported by the SOMA
6059 implementation, an error will be raised.
61-
60+ domain: A sequence of tuples specifying the domain of each index
61+ column. Each tuple must be a pair consisting of the minimum
62+ and maximum values storable in the index column. This sequence
63+ must have the same length as ``index_column_names``. Use
64+ ``None`` for string index columns when the implementation does
65+ not support string domains.
6266 index_column_names: A list of column names to use as user-defined
6367 index columns (e.g., ``['cell_type', 'tissue_type']``).
6468 All named columns must exist in the schema, and at least one
6569 index column name is required.
66-
67- domain:
68- A sequence of tuples specifying the domain of each index
69- column. Each tuple must be a pair consisting of the minimum
70- and maximum values storable in the index column. This sequence
71- must have the same length as ``index_column_names``. Use ``None`` for string
72- index columns when the implementation does not support string domains.
7370 platform_config: platform-specific configuration; keys are SOMA
7471 implementation names.
75-
7672 context: Other implementation-specific configuration.
7773
7874 Returns:
@@ -110,10 +106,10 @@ def read(
110106 The default of ``None`` represents no filter. Value filter
111107 syntax is implementation-defined; see the documentation
112108 for the particular SOMA implementation for details.
109+
113110 Returns:
114111 A :class:`ReadIter` of :class:`pa.Table`s.
115112
116-
117113 **Indexing:**
118114
119115 Indexing is performed on a per-column basis for each indexed column.
@@ -203,7 +199,8 @@ def write(
203199 the index columns. The schema for the values must match
204200 the schema for the ``DataFrame``.
205201
206- Returns: ``self``, to enable method chaining.
202+ Returns:
203+ ``self``, to enable method chaining.
207204
208205 Lifecycle: maturing
209206 """
@@ -231,7 +228,8 @@ def index_column_names(self) -> tuple[str, ...]:
231228 def domain (self ) -> tuple [tuple [Any , Any ], ...]:
232229 """The allowable range of values in each index column.
233230
234- Returns: a tuple of minimum and maximum values, inclusive,
231+ Returns:
232+ A tuple of minimum and maximum values, inclusive,
235233 storable on each index column of the dataframe.
236234
237235 Lifecycle: maturing
@@ -266,7 +264,8 @@ def create(
266264 All lengths must be in the positive int64 range. The shape can
267265 be increased after creation using :meth:`resize`.
268266
269- Returns: The newly created array, opened for writing.
267+ Returns:
268+ The newly created array, opened for writing.
270269
271270 Lifecycle: maturing
272271 """
@@ -308,8 +307,7 @@ def schema(self) -> pa.Schema:
308307
309308@runtime_checkable
310309class DenseNDArray (NDArray , Protocol ):
311- """
312- An N-dimensional array stored densely.
310+ """An N-dimensional array stored densely.
313311
314312 Lifecycle: maturing
315313 """
@@ -340,7 +338,8 @@ def read(
340338 platform_config: platform-specific configuration; keys are SOMA
341339 implementation names.
342340
343- Returns: The data over the requested range as a tensor.
341+ Returns:
342+ The data over the requested range as a tensor.
344343
345344 **Indexing:**
346345
@@ -386,7 +385,10 @@ def write(
386385 See :meth:`read` for details about indexing.
387386 values: The values to be written to the subarray. Must have
388387 the same shape as ``coords``, and matching type to the array.
389- Returns: ``self``, to enable method chaining.
388+
389+ Returns:
390+ ``self``, to enable method chaining.
391+
390392 Lifecycle: maturing
391393 """
392394 ...
@@ -420,15 +422,16 @@ def read(
420422 coords: A per-dimension sequence of coordinates defining
421423 the range to be read.
422424 batch_size: The size of batches that should be returned from a read.
423- See :class:`options.BatchSize` for details.
425+ See :class:`options.BatchSize` for details.
424426 partitions: Specifies that this is part of a partitioned read,
425427 and which partition to include, if present.
426428 result_order: the order to return results, specified as a
427429 :class:`~options.ResultOrder` or its string value.
428430 platform_config: platform-specific configuration; keys are SOMA
429431 implementation names.
430432
431- Returns: The data that was requested in a :class:`SparseRead`,
433+ Returns:
434+ The data that was requested in a :class:`SparseRead`,
432435 allowing access in any supported format.
433436
434437 **Indexing:**
@@ -483,7 +486,8 @@ def write(
483486 platform_config: platform-specific configuration; keys are SOMA
484487 implementation names.
485488
486- Returns: ``self``, to enable method chaining.
489+ Returns:
490+ ``self``, to enable method chaining.
487491
488492 Lifecycle: maturing
489493 """
0 commit comments