@@ -314,58 +314,6 @@ async def _create_v3(
314314 attributes : dict [str , JSON ] | None = None ,
315315 exists_ok : bool = False ,
316316 ) -> AsyncArray :
317- """
318- Asynchronously create a Zarr V3 array.
319-
320- Parameters
321- ----------
322- store_path : StorePath
323- The path within the store where the array should be created.
324-
325- shape : ShapeLike
326- The shape of the array.
327-
328- dtype : numpy.typing.DTypeLike
329- The data type of the array elements.
330-
331- chunk_shape : ChunkCoords
332- The shape of the chunks in the array.
333-
334- fill_value : Any, optional
335- The default value to use for uninitialized regions of the array. Default is None.
336-
337- chunk_key_encoding : ChunkKeyEncoding or tuple, optional
338- The encoding to use for chunk keys. Can be either 'default' or 'v2' along with a separator,
339- either "." or "/". Default is None.
340-
341- codecs : Iterable of Codec or dict of str to JSON, optional
342- The codecs to apply to each chunk. These can be codec objects or dictionaries specifying codec
343- configurations. Default is None.
344-
345- dimension_names : Iterable of str or None, optional
346- The names of the array dimensions. Default is None.
347-
348- attributes : dict of str to JSON, optional
349- User-defined attributes to be associated with the array. Default is None.
350-
351- exists_ok : bool, optional
352- If False (default), raise an error if the array already exists. If True, overwrite the existing array.
353-
354- Returns
355- -------
356- AsyncArray
357- The created Zarr v3 array.
358-
359- Raises
360- ------
361- ValueError
362- If the parameters are incompatible or invalid.
363-
364- Notes
365- -----
366- - This method is asynchronous and should be awaited.
367- - This function is specific to Zarr V3 format arrays.
368- """
369317 if not exists_ok :
370318 await ensure_no_existing_node (store_path , zarr_format = 3 )
371319
@@ -414,61 +362,6 @@ async def _create_v2(
414362 attributes : dict [str , JSON ] | None = None ,
415363 exists_ok : bool = False ,
416364 ) -> AsyncArray :
417- """
418- Asynchronously create a Zarr V2 array.
419-
420- Parameters
421- ----------
422- store_path : StorePath
423- The path within the store where the array should be created.
424-
425- shape : ChunkCoords
426- The shape of the array.
427-
428- dtype : numpy.typing.DTypeLike
429- The data type of the array elements.
430-
431- chunks : ChunkCoords
432- The shape of the chunks in the array.
433-
434- dimension_separator : {'.', '/'} or None, optional
435- The separator to use between chunk dimensions. Default is None.
436-
437- fill_value : float or None, optional
438- The default value to use for uninitialized regions of the array. Default is None.
439-
440- order : {'C', 'F'} or None, optional
441- The memory layout order for the array. 'C' is row-major (C-style), 'F' is column-major
442- (Fortran-style). Default is None.
443-
444- filters : list of dict of str to JSON or None, optional
445- Filters to apply to each chunk. These can be dictionaries specifying filter configurations.
446- Default is None.
447-
448- compressor : dict of str to JSON or None, optional
449- The compression algorithm to use for chunks. Default is None.
450-
451- attributes : dict of str to JSON, optional
452- User-defined attributes to be associated with the array. Default is None.
453-
454- exists_ok : bool, optional
455- If False (default), raise an error if the array already exists. If True, overwrite the existing array.
456-
457- Returns
458- -------
459- AsyncArray
460- The created Zarr V2 array.
461-
462- Raises
463- ------
464- ValueError
465- If the parameters are incompatible or invalid.
466-
467- Notes
468- -----
469- - This method is asynchronous and should be awaited.
470- - This function is specific to Zarr v2 format arrays.
471- """
472365 if not exists_ok :
473366 await ensure_no_existing_node (store_path , zarr_format = 2 )
474367 if order is None :
@@ -702,40 +595,6 @@ async def _get_selection(
702595 out : NDBuffer | None = None ,
703596 fields : Fields | None = None ,
704597 ) -> NDArrayLike :
705- """
706- Asynchronously retrieve a selection from the array.
707-
708- Parameters
709- ----------
710- indexer : Indexer
711- An object representing the indices to be used for selecting data from the array.
712-
713- prototype : BufferPrototype
714- A prototype buffer that defines the structure and properties of the output data.
715-
716- out : NDBuffer or None, optional
717- An optional output buffer to write the selected data into. If None, a new buffer
718- will be created. Default is None.
719-
720- fields : Fields or None, optional
721- Specifies which fields to select if the array has structured data. If None, all fields
722- are selected. Default is None.
723-
724- Returns
725- -------
726- NDArrayLike
727- The selected data from the array.
728-
729- Raises
730- ------
731- ValueError
732- If the indices or selection criteria are invalid.
733-
734- Notes
735- -----
736- - This method is asynchronous and should be awaited.
737- - The selection can be made using advanced indexing and supports structured arrays.
738- """
739598 # check fields are sensible
740599 out_dtype = check_fields (fields , self .dtype )
741600
@@ -838,37 +697,6 @@ async def _set_selection(
838697 prototype : BufferPrototype ,
839698 fields : Fields | None = None ,
840699 ) -> None :
841- """
842- Asynchronously set a selection of values in the array.
843-
844- Parameters
845- ----------
846- indexer : Indexer
847- An object representing the indices to be used for selecting locations in the array where data will be written.
848-
849- value : numpy.typing.ArrayLike
850- The values to be written into the array at the selected locations. Must be compatible with the array's dtype and shape.
851-
852- prototype : BufferPrototype
853- A prototype buffer that defines the structure and properties of the array chunks being modified.
854-
855- fields : Fields or None, optional
856- Specifies which fields to set if the array has structured data. If None, all fields are set. Default is None.
857-
858- Returns
859- -------
860- None
861- This method does not return any value.
862-
863- Raises
864- ------
865- ValueError
866- If the indices or values are incompatible with the array's shape or dtype.
867-
868- Notes
869- -----
870- - This method is asynchronous and should be awaited.
871- """
872700 # check fields are sensible
873701 check_fields (fields , self .dtype )
874702 fields = check_no_multi_fields (fields )
0 commit comments