Skip to content

Commit 8727973

Browse files
committed
warning if shards is specified for 0.4
1 parent f6d1e5e commit 8727973

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

iohub/ngff/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from functools import partial
66
from pathlib import Path
77
from typing import Any, Callable, Literal, Sequence, Union
8+
from warnings import warn
89

910
import click
1011
import numpy as np
@@ -108,7 +109,7 @@ def create_empty_plate(
108109
version=version,
109110
)
110111
if output_plate.version == "0.4" and shards_ratio is not None:
111-
raise ValueError("Sharding is not supported in OME-Zarr version 0.4.")
112+
warn("Ignoring shards ratio for OME-Zarr version 0.4.")
112113

113114
# Create positions
114115
for position_key in position_keys:

0 commit comments

Comments
 (0)