Skip to content

Commit e9db616

Browse files
committed
restore batch size but it's only there for warnings
1 parent 204dda1 commit e9db616

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/zarr/core/codec_pipeline.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,16 @@ class BatchedCodecPipeline(CodecPipeline):
212212
array_array_codecs: tuple[ArrayArrayCodec, ...]
213213
array_bytes_codec: ArrayBytesCodec
214214
bytes_bytes_codecs: tuple[BytesBytesCodec, ...]
215+
batch_size: int | None = None
216+
217+
def __post_init__(self) -> None:
218+
if self.batch_size is not None:
219+
warn(
220+
"The 'batch_size' parameter is deprecated and has no effect. "
221+
"Batch size is now determined automatically.",
222+
FutureWarning,
223+
stacklevel=2,
224+
)
215225

216226
@property
217227
def _all_sync(self) -> bool:

0 commit comments

Comments
 (0)