Skip to content

Commit

Permalink
Merge pull request #411 from dstansby/parse-url-docs
Browse files Browse the repository at this point in the history
Document input/output for parse_url
  • Loading branch information
joshmoore authored Dec 10, 2024
2 parents ec7f2ad + 831fab9 commit 48d2813
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 48d2813

Please sign in to comment.