Skip to content

Commit

Permalink
feat: raise error against non-zarr loading
Browse files Browse the repository at this point in the history
  • Loading branch information
seankmartin committed Nov 21, 2023
1 parent ae7564c commit 5483749
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cryo_et_neuroglancer/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
def load_omezarr_data(input_filepath: Path) -> da.Array:
"""Load the OME-Zarr data and return a dask array"""
url = parse_url(input_filepath)
if not url:
raise ValueError(f"Input file {input_filepath} is not a ZARR file")
reader = Reader(url)
nodes = list(reader())
image_node = nodes[0]
Expand Down

0 comments on commit 5483749

Please sign in to comment.