Skip to content

Commit

Permalink
write_image() validates axes before scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Oct 28, 2021
1 parent b11b3de commit af4f882
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ome_zarr/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ def write_image(
# and we don't need axes
axes = None

# check axes before trying to scale
_validate_axes_names(image.ndim, axes, fmt)

if chunks is not None:
chunks = _retuple(chunks, image.shape)

Expand Down

0 comments on commit af4f882

Please sign in to comment.