Skip to content

Commit

Permalink
Document input/output for parse_url
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Nov 27, 2024
1 parent c6eea51 commit 831fab9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- Drop support for Python 3.8.
- Document parameters and return value of `parse_url`.

# 0.9.0 (May 2024)

Expand Down
8 changes: 8 additions & 0 deletions ome_zarr/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ def parse_url(
) -> Optional[ZarrLocation]:
"""Convert a path string or URL to a ZarrLocation subclass.
:param path: Path to parse.
:param mode: Mode to open in.
:param fmt: Version of the OME-NGFF spec to open path with.
:return: `ZarrLocation`.
If mode is 'r', and the path does not exist returns None.
If there is an error opening the path, also returns None.
>>> parse_url('does-not-exist')
"""
try:
Expand Down

0 comments on commit 831fab9

Please sign in to comment.