Skip to content

Commit 87d2a9e

Browse files
committed
fixup
1 parent c39e03c commit 87d2a9e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/zarr/abc/store.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,6 @@ async def getsize_prefix(self, prefix: str) -> int:
421421
"""
422422
Return the size, in bytes, of all values under a prefix.
423423
424-
This will include just values whose keys start with ``prefix`` and
425-
do not contain the character ``/`` after the given prefix.
426-
427424
Parameters
428425
----------
429426
prefix : str
@@ -434,11 +431,15 @@ async def getsize_prefix(self, prefix: str) -> int:
434431
nbytes : int
435432
The sum of the sizes of the values in the directory (in bytes).
436433
434+
See Also
435+
--------
436+
zarr.Array.nbytes_stored
437+
Store.getsize
438+
437439
Notes
438440
-----
439-
``getsize_dir`` is just provided as a potentially faster alternative to
440-
listing all the keys in a directory and calling :meth:`Store.getsize`
441-
on each.
441+
``getsize_prefix`` is just provided as a potentially faster alternative to
442+
listing all the keys under a prefix calling :meth:`Store.getsize` on each.
442443
"""
443444
keys = [x async for x in self.list_prefix(prefix)]
444445
sizes = await gather(*[self.getsize(key) for key in keys])

0 commit comments

Comments
 (0)