Skip to content

Commit

Permalink
Simplify get_zarr_reader
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarrison committed Jul 17, 2024
1 parent 84af9c4 commit 99f043f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bioio_ome_zarr/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,4 @@ def _get_coords(


def get_zarr_reader(fs: AbstractFileSystem, path: str) -> ZarrReader:
if fs is not None:
return ZarrReader(ZarrLocation(zarr.storage.FSStore(url=path, fs=fs)))
return ZarrReader(parse_url(path, mode="r"))
return ZarrReader(ZarrLocation(zarr.storage.FSStore(url=path, fs=fs)))

0 comments on commit 99f043f

Please sign in to comment.