Skip to content

Commit

Permalink
fix sign error
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Sep 20, 2024
1 parent 3c1c976 commit 9183af9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lindi/conversion/create_zarr_dataset_from_h5_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def _get_default_chunks(shape: Tuple, dtype: Any) -> Tuple:
shape_prod_0 = np.prod(shape[1:])
optimal_chunk_size_bytes = 1024 * 1024 * 20 # 20 MB
optimal_chunk_size = optimal_chunk_size_bytes // (dtype_size * shape_prod_0)
if optimal_chunk_size <= shape[0]:
if optimal_chunk_size > shape[0]:
return shape
if optimal_chunk_size < 1:
return (1,) + shape[1:]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lindi"
version = "0.4.1"
version = "0.4.2"
description = ""
authors = [
"Jeremy Magland <jmagland@flatironinstitute.org>",
Expand Down

0 comments on commit 9183af9

Please sign in to comment.